Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,399
» Latest member: kylausasd5428
» Forum threads: 38,826
» Forum posts: 176,037

Full Statistics

Online Users
There are currently 32 online users.
» 0 Member(s) | 27 Guest(s)
Apple, Bing, Google, AOL

Latest Threads
Для кулінарів, хто іноді ...
Forum: Code sharing
Last Post: kylausasd5428
1 hour ago
» Replies: 0
» Views: 13
Check if running from she...
Forum: General Coding Help
Last Post: noisefloor
5 hours ago
» Replies: 2
» Views: 119
Sorry Help
Forum: General Coding Help
Last Post: noisefloor
5 hours ago
» Replies: 2
» Views: 111
IP address for users
Forum: Networking
Last Post: DeaD_EyE
Yesterday, 08:02 PM
» Replies: 6
» Views: 7,179
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Yesterday, 07:58 AM
» Replies: 28
» Views: 15,642
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Dec-30-2025, 12:11 AM
» Replies: 1
» Views: 193
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,615
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Dec-29-2025, 08:37 AM
» Replies: 4
» Views: 279
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Dec-29-2025, 07:27 AM
» Replies: 7
» Views: 3,639
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 252

 
Question Text color (ascii) in a dictionary
Posted by: banidjamali - Feb-24-2021, 05:44 PM - Forum: General Coding Help - Replies (1)

Hello everyone.

In this code:
[python]
spots = {1: '1', 2: '2', 3: '3'}
spots[1] = '\033[93mONE\033[0m'

print(spots[1])
print(spots)
[/pyth..... More

Print this item

  int() argument Error.... but it's not :)
Posted by: LeoT - Feb-24-2021, 05:39 PM - Forum: General Coding Help - Replies (2)

Hi there,
my code is totally fine but only during day time :)
I basically do a GET request to a solar inverter that responds (during day time!) with..... More

Print this item

  Continue command in python tkinter?
Posted by: MLGpotato - Feb-24-2021, 04:37 PM - Forum: GUI - Replies (7)

Hello! Is there anyway to set a continue command to button without making another def?
[python]enter = Button(root, text = "Name your self" command =..... More

Print this item

  Upgraded Django, `AdminSplitDateTime` causes exception on `list` object
Posted by: 1780yz - Feb-24-2021, 03:56 PM - Forum: Web Scraping & Web Development - Replies (2)

I'm upgrading a project from Python2.7 + Django1.8 to Python3.7 + Django3.1. The application contains a form using w..... More

Print this item

  How to programmatically exit without Traceback?
Posted by: Mark17 - Feb-24-2021, 03:47 PM - Forum: General Coding Help - Replies (7)

This code ends by printing 4:

import sys

for i in range(10):
    if i == 5:
          sys.exit(0)
    print(i)
When I e..... More

Print this item

  re: delete string onwards
Posted by: JohnnyCoffee - Feb-24-2021, 03:12 PM - Forum: News and Discussions - Replies (3)

I get a dynamic data string that I capture from the HTTP header, assigning a variable according to the example below:

[python]
lang = 'pt-br,pt;q=..... More

Print this item

  Getting a GET request output text into a variable to work with it.
Posted by: LeoT - Feb-24-2021, 01:38 PM - Forum: General Coding Help - Replies (2)

Hi there,
I'm an total beginner in python and currently experimenting with the request library.
I basically want to do a GET request to my local sol..... More

Print this item

  Why getting ValueError : Math domain error in trig. function, math.asin() ?
Posted by: jahuja73 - Feb-24-2021, 11:56 AM - Forum: General Coding Help - Replies (3)

Unable to see why error in output.
Tried on repl.it, as well as ideone.com; and get the same error.

[python]
#your code goes here
import math

# num..... More

Print this item

Photo Unable to Extract a web element
Posted by: law - Feb-24-2021, 11:14 AM - Forum: Web Scraping & Web Development - Replies (6)

Hello,
I have this Selenium web scrapping project I've been working on for while, everything have been awesome till recently the website got updated ..... More

Print this item

Question exiting the outer function from the inner function
Posted by: banidjamali - Feb-24-2021, 07:16 AM - Forum: General Coding Help - Replies (3)

Hello everyone.

In the code below I have simplified a result I'm trying to achieve.
I want to know how I can exit the outer function when the inne..... More

Print this item

Question Dataframe Manipulation Coping Rows and Removing Dates
Posted by: ashleysnl - Feb-24-2021, 02:18 AM - Forum: General Coding Help - Replies (1)

Hello,

I have a data frame that contains two dates in a single column. I would like to copy the column and split the dates. how can I achieve this..... More

Print this item

  parsin python code
Posted by: Skaperen - Feb-24-2021, 02:18 AM - Forum: News and Discussions - Replies (5)

is there a function to parse or lex python code? in particular i want to extract the name from a source line that is a def or class statement. i don..... More

Print this item

  AttributeError class object has no attribute list object
Posted by: scttfnch - Feb-24-2021, 01:00 AM - Forum: General Coding Help - Replies (5)

Hi,

I am calling an API to retrieve different types of information in multiple calls. I use an authorization process to gain access to the API and ..... More

Print this item

  Statements and Expressions
Posted by: Julie - Feb-23-2021, 11:46 PM - Forum: General Coding Help - Replies (1)

Understanding Statements and Expressions
After a ton of research, reading and asking around here is my understanding of statements and express..... More

Print this item

  exporting all lines
Posted by: YazeedbnMohmmed - Feb-23-2021, 11:35 PM - Forum: General Coding Help - Replies (2)

Hello Dear

Before few days ago I was code password generator and I had problem that the output text file only write last line my code was like thi..... More

Print this item

  Move a key:value in a dictionary
Posted by: dgrunwal - Feb-23-2021, 09:17 PM - Forum: General Coding Help - Replies (4)

I created the following dictionary and added another key:value.

[python]>>> super_hero_names = {
... 'Superman' : 'Clark Kent',
... 'Spid..... More

Print this item

  python selenium downloading embedded pdf
Posted by: damian0612 - Feb-23-2021, 08:44 PM - Forum: Web Scraping & Web Development - No Replies

I've navigated to a page to download a pdf that is a report showing information I've asked for. However, I can't seem to download it because of the wa..... More

Print this item

  Running a few lines of code as soon as my timer ends
Posted by: nethatar - Feb-23-2021, 08:44 PM - Forum: General Coding Help - Replies (3)

Basically near the end of my script I added a timer that will count down the exact time until it hits 0. Lets say I make it wait 100 seconds, it will ..... More

Print this item

  IMAP authentication
Posted by: matt_the_hall - Feb-23-2021, 08:38 PM - Forum: Networking - No Replies

Hi folks,

I am trying to write a console based IMAP email client and am feeling a little confused about the connection/authentication part.

Som..... More

Print this item

  keeping the last 4 records in a list
Posted by: Skaperen - Feb-23-2021, 08:17 PM - Forum: News and Discussions - Replies (2)

i'm reading in lines from a file by looping over the open file object so i have 1 line at a time. i need to do tests that check the last 4 lines. i ..... More

Print this item

Sad :/
Posted by: Oshadha - Feb-23-2021, 04:45 PM - Forum: General Coding Help - Replies (1)

Script;
[python]
import mysql.connector

mydb = mysql.connector.connect(
host = "localhost",
user = "root",
passwd = "password",
..... More

Print this item

  How to create a speed limiter for a car
Posted by: Tyrel - Feb-23-2021, 04:26 PM - Forum: General Coding Help - Replies (3)

Can someone please help me.

I want to create a device that you plug into your car that limits the speed of the car according to the speed limit of ..... More

Print this item

  Reindex columns
Posted by: rr1997 - Feb-23-2021, 03:09 PM - Forum: General Coding Help - Replies (10)

Hi,

How can I reindex columns? I get an error that says "ValueError: Length mismatch: Expected axis has 18 elements, new values have 5 elements"
..... More

Print this item

  tkinter destroy label inside labelFrame
Posted by: Nick_tkinter - Feb-23-2021, 02:32 PM - Forum: GUI - Replies (3)

hello.I have 3 functions inside a file:

[python]import webbrowser
from tkinter import *
from datetime import datetime
def open_google_maps(root ..... More

Print this item

  object has no attribute 'add_internal'
Posted by: djwilson0495 - Feb-23-2021, 02:11 PM - Forum: Game Development - Replies (7)

I'm trying to produce a grid of stars in a pygame window but when I run the code:

[python]
import sys

import pygame # contains functionality ..... More

Print this item

  Help with beginner assignment
Posted by: Sigwulfr - Feb-23-2021, 02:03 PM - Forum: Homework - Replies (4)

Hi all, and in advance thanks for helping out the Python rookie :)

For my Programming Class I have to create a program that can search for a substr..... More

Print this item

  Circular import dependency
Posted by: hobbyist - Feb-23-2021, 09:45 AM - Forum: General Coding Help - Replies (9)

Hello, I got this message when trying to run my code:
[error]ImportError: cannot import name 'convert_kernel' from partially initialized module 'keras..... More

Print this item

  How to understand the byte notation in python3
Posted by: blackknite - Feb-23-2021, 07:00 AM - Forum: General Coding Help - Replies (3)

Hey, I am trying to learn low-level stuff in py3 for some crypto project, and it is pretty hard so far.

[python]In [63]: int(b'\x12AY5'.hex(),16)
..... More

Print this item

  how to get process handler?
Posted by: maiya - Feb-23-2021, 06:40 AM - Forum: General Coding Help - Replies (1)

Hi All,

I have few questions
1. how to get the process handler?
2. how to keep the process open throughout the entire execution of the script
3...... More

Print this item

  pyautogui attribuyes not found
Posted by: rfresh737 - Feb-22-2021, 10:32 PM - Forum: GUI - Replies (7)

I'm fairly new to python programming. I installed pyautogui.

I was just starting a basic tutorial on using it with these two lines:

[python]
import ..... More

Print this item

  Efficient method to find phrase in string
Posted by: Tuxedo - Feb-22-2021, 10:13 PM - Forum: Data Science - Replies (6)

I'm creating an application to automatically categorize personal financial transactions based on the description (I know some institutions do that alr..... More

Print this item

  Call for participants in creating an App for Wikidata
Posted by: priskorn - Feb-22-2021, 10:04 PM - Forum: Bar - Replies (1)

I have started a project to make it easy to edit Wikidata from mobile devices. Feel free to join, we have a python GNU/Linux GTK app in beta which we ..... More

Print this item

  Please help to make the code smaller
Posted by: dexomol - Feb-22-2021, 08:08 PM - Forum: Code Review - Replies (2)

Hi,
can some one show me a way to write this code in a shorter way? :)
Can't find a way to make the labels configure more compact with iteration.
..... More

Print this item

  Subprocesses not opening File Select Dialog
Posted by: teut - Feb-22-2021, 05:55 PM - Forum: General Coding Help - Replies (2)

Hello ,
I am trying to run a command which should open up a File Select Windows widget in Kivy. Kivy has the non-native FileChooser class which is n..... More

Print this item

  How to start the program from the beginning.
Posted by: iamaghost - Feb-22-2021, 05:33 PM - Forum: General Coding Help - Replies (5)

Hey guys,

im currently just trying to make very basic rock, paper, scissors game but i strumbled upon the following problem:

i wrote basic code..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Для кулінарів, хто іноді ... 1 hour ago kylausasd5428 kylausasd5428 Code sharing
  Check if running from she... 5 hours ago rjdegraff42 noisefloor General Codin...
  Sorry Help 5 hours ago BioNanoTech noisefloor General Codin...
  IP address for users Yesterday, 20:02 Robots DeaD_EyE Networking
  Merge video with subtitle... Yesterday, 07:58 Pavel_47 OtiliaGen General Codin...
  Opencv findContours Q 12-30, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... 12-29, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... 12-29, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
Most views
  The best Prog... 580481
  Tutorial Requ... 520049
  Web Scraping ... 442797
  Newbie with P... 387015
  New Users Int... 386799
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
kylausasd5428 Today
zasamueluniorz7349 Today
BioNanoTech Today
CarlApome Yesterday
cruisesfares 12-30

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020