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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,954
» Latest member: Perry
» Forum threads: 38,727
» Forum posts: 175,524

Full Statistics

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

Latest Threads
how to export a dictionar...
Forum: GUI
Last Post: deanhystad
11 minutes ago
» Replies: 2
» Views: 121
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
2 hours ago
» Replies: 0
» Views: 325
extracting data from a us...
Forum: General Coding Help
Last Post: Perry
2 hours ago
» Replies: 0
» Views: 47
pip install requests does...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 02:48 PM
» Replies: 10
» Views: 29,329
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Sep-23-2025, 12:00 PM
» Replies: 4
» Views: 9,399
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Sep-23-2025, 09:08 AM
» Replies: 0
» Views: 269
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Sep-23-2025, 03:29 AM
» Replies: 2
» Views: 716
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 908
403 error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 5,169
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,385

 
  Best practices for searching lists of lists
Posted by: osxtra - Oct-24-2020, 07:33 PM - Forum: General Coding Help - Replies (1)

Hi, all,

Python 3.9, compiled from source on OSX 10.13.6

After a fair amount of experimentation and searching the inter-tubes, I have a few ques..... More

Print this item

  [SOLVED] Filling multidict from CSV file?
Posted by: Winfried - Oct-24-2020, 07:13 PM - Forum: General Coding Help - Replies (3)

Hello,

For some reason, the list that is filled from the CSV file is OK, but when printing the contents of the multidict, I get more than three val..... More

Print this item

  View and extend native python class
Posted by: PythonDev - Oct-24-2020, 06:53 PM - Forum: General Coding Help - Replies (2)

How do I view the code of a native python class to be able to extend it? Class would be FieldStorage of the cgi module.

Print this item

  Switch Frames
Posted by: Maryan - Oct-24-2020, 05:59 PM - Forum: GUI - Replies (2)

Any help is appreciated. I'm trying to create main window(quiz), on click start button I want to switch the frame(pagetwo)etc.

[python]from tkinter..... More

Print this item

  Can't open files
Posted by: Lass86 - Oct-24-2020, 05:30 PM - Forum: General Coding Help - Replies (5)

Hello everyone,

I keep running into this issue and after some research I still don't know what to do. I have used different IDE's and editors, but ..... More

Print this item

  Passing on values
Posted by: DurkVell - Oct-24-2020, 05:17 PM - Forum: GUI - Replies (4)

Hi, I'm new to Python and tkinter programming. I have tried to find an answer to my problem on this forum, but couldn't find it. This problem is surel..... More

Print this item

  saving issue on homework assignment
Posted by: russoj5 - Oct-24-2020, 04:26 PM - Forum: Homework - Replies (2)

Hi All,

Anyone have any experience with saving a python module on a Mac? I was doing a homework assignment and there were no issues. I saved the fi..... More

Print this item

  Tkinter font style
Posted by: ATARI_LIVE - Oct-24-2020, 04:01 PM - Forum: General Coding Help - Replies (2)

Here I have code:
[python]Label(window_1, textvariable=display_alarm_switch, font=("Ticking Timebomb BB", 30), fg=colorfg, bg=colorbg).place(x=x_pos,..... More

Print this item

  unexpected output
Posted by: asyrafcc99 - Oct-24-2020, 02:40 PM - Forum: General Coding Help - No Replies

def compile_data():
with open("dict.pickle","rb") as f:
tickers = pickle.load(f)

main_df = pd.DataFrame()

for count,ticker..... More

Print this item

  Anyone interested in joining a start-up let me know!
Posted by: JackTarsh - Oct-24-2020, 01:37 PM - Forum: Data Science - Replies (1)

Hi guys! I'm the CEO of a tech start-up and need the help of a developer. If anyone here is interested please let me know by replying or sending me a ..... More

Print this item

  define a variable using an if statement
Posted by: Margaridalopes - Oct-24-2020, 01:31 PM - Forum: General Coding Help - Replies (2)

I would like to define a variable using an if statement, for example:

a=0
b=1

if a = 0:
   c = b
 else:
   c = a
I know ..... More

Print this item

  repeating
Posted by: pastakipp - Oct-24-2020, 11:28 AM - Forum: Homework - Replies (1)

hello guys, when i run this code i can only change 1 item in the list, but i want to repeat the code untill all the three items in the list are change..... More

Print this item

  Not able to set up a virtual environment with venv
Posted by: mohanp06 - Oct-24-2020, 06:58 AM - Forum: General Coding Help - Replies (7)

I am new to Python. While going through the tutorials, I came to know that we should set up a virtual environment before installing any Python package..... More

Print this item

  Create new variable dependent on two existing variables
Posted by: JoeOpdenaker - Oct-24-2020, 04:52 AM - Forum: General Coding Help - Replies (6)

[python]
#create trial type to determine stimulus switching vs recurrent
def TrialType(Congruency):
if 'Congruency' = 'pCongruency' return 'True'
..... More

Print this item

  autocomplete working code sample not working...
Posted by: aviper4u - Oct-24-2020, 03:04 AM - Forum: General Coding Help - No Replies

hello,

I have followed the guide and even downloaded the source though I cannot get the autocomplete to work locally...
https://www.roytuts.com/au..... More

Print this item

  calling a function and argument in an input
Posted by: phillup7 - Oct-24-2020, 02:57 AM - Forum: General Coding Help - Replies (3)

hi I was wondering if anyone could help me with this for a personal prject I am working on
what I want to do is to call a function and an argument in..... More

Print this item

  name error with text based rpg code
Posted by: cris_ram415 - Oct-24-2020, 12:57 AM - Forum: General Coding Help - Replies (4)

I am getting a NameError in my text based rpg and I was wondering if anyone could help. Here's the code:

[python]
def chooseCoffee ():
coffee = "..... More

Print this item

  Python error for style2paint
Posted by: chainslinger - Oct-23-2020, 10:01 PM - Forum: General Coding Help - Replies (1)

Hi, this is the error I'm getting.
Style2Paints Customed Tensorflow Shifting to GPU.
[error]Traceback (most recent call last):
File "site-package..... More

Print this item

  RadioButton
Posted by: Maryan - Oct-23-2020, 09:15 PM - Forum: GUI - Replies (2)

When I run the app, all values are selected. How can I fix this?

self.Radio_Value2 = StringVar()
self.radb4 = Radiobutton(frame, value = 'Yes', te..... More

Print this item

  iteration
Posted by: d8a988 - Oct-23-2020, 09:12 PM - Forum: Data Science - Replies (2)

I am trying to remove the first item from a list at every iteration if when subtracted from the next number on the list will give a result that is equ..... More

Print this item

  Python linter Pylance: What does "(variable): List | Unbound" mean?
Posted by: Drone4four - Oct-23-2020, 08:13 PM - Forum: General Coding Help - Replies (1)

Hello Pythonistas!

I’m running VS Code. The default Python linter helps. I’m exploring an enhanced Python linter called Pylance. It’s highlighting ..... More

Print this item

  Buliding a dataframe with where conditions
Posted by: cspower - Oct-23-2020, 07:18 PM - Forum: Data Science - Replies (2)

I'm trying to build a data-frame from csv file by selecting only the rows where one column is = to a string and a 2nd column has no value. The code be..... More

Print this item

  Help with a random.randint choice in Python
Posted by: booponion - Oct-23-2020, 02:59 PM - Forum: General Coding Help - Replies (5)

import random

#This program is being written for a close friend of mine and I need help with the choice program, I need it to choose a random letter ..... More

Print this item

  How to read csv files parallay
Posted by: Mekala - Oct-23-2020, 02:22 PM - Forum: General Coding Help - Replies (2)

Hi,
I have multiple CSV files in the folder, I want to read them parallelly. Each file takes 1min to read and do some calculations. I want to read CS..... More

Print this item

  SystemError: error return without exception set!!!
Posted by: faryad13 - Oct-23-2020, 02:18 PM - Forum: General Coding Help - Replies (3)

Hi everybody

I am trying to read s0me data from an excel file in python. Here is a part of my code:

def main():


xl_element = ut..... More

Print this item

  Trying to play sound. Getting fatal error.
Posted by: giladal - Oct-23-2020, 01:59 PM - Forum: Game Development - Replies (1)

Hello guys.

I am creating a space invader sort of game and for some reason when the sound of the shooting or explosion is heard, right after the pr..... More

Print this item

  list subtraction
Posted by: d8a988 - Oct-23-2020, 01:06 PM - Forum: Data Science - Replies (3)

I separated a list into sublists and now I want to subtract the second list from the first one, the third from the second and so on.
The following co..... More

Print this item

  Pandas, How to trigger parallel loop
Posted by: Mekala - Oct-23-2020, 01:05 PM - Forum: General Coding Help - Replies (4)

Hi,
I have multiple CSV files in the folder, and I need to read each file and some calculation (like getting the first coulmn sum) and concate to res..... More

Print this item

  Upgrade pip error
Posted by: karunas - Oct-23-2020, 11:11 AM - Forum: General Coding Help - Replies (3)

I installed python 3.9 and I started getting pip version error when using it in edx dl

There was a problem confirming the ssl certificate: HTTPSCon..... More

Print this item

  Increase Numbers forever and need reset?
Posted by: ATARI_LIVE - Oct-23-2020, 10:30 AM - Forum: General Coding Help - Replies (4)

Here my code for the mouse click modes 0 = released, 1 = clicked, 2 = press and hold.

It's WORKS.

[python]
from tkinter import *

lp_id = pr..... More

Print this item

  sleep to half past the hour
Posted by: Skaperen - Oct-23-2020, 10:26 AM - Forum: News and Discussions - Replies (11)

a script needs to sleep to half past the hour. how would you do it?

Print this item

  Telegram Users Scrapper - Exclude UserPrivacyRestricted
Posted by: graphite2015 - Oct-23-2020, 05:43 AM - Forum: General Coding Help - No Replies

Hi expert coders,
I am using following python script to export Telegram Group users in .csv format.
It is exporting a csv file from the targeted pub..... More

Print this item

  Requests library failure in name resolution/Network is unreachable
Posted by: zazas321 - Oct-23-2020, 04:37 AM - Forum: General Coding Help - Replies (1)

Hello. I am using Requests library to make API requets to the internal server/database.
I am making requests as following:
[code]

while(1):
..... More

Print this item

  Guess your number
Posted by: joe_momma - Oct-23-2020, 02:46 AM - Forum: Code sharing - No Replies

tkinter script that knows the number you have chosen, pick a number between 1 and 63,127,255, or 511. Then answer if your number is in the displayed ..... More

Print this item

Star How to perform math function in different page of Tkinter GUI
Posted by: ravaru - Oct-23-2020, 02:45 AM - Forum: GUI - Replies (2)

[python]
from tkinter import *
from functools import partial

def raise_frame(frame):
frame.tkraise()

win = Tk()
win.geometry("400x30..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] how to export a... 11 minutes ago RonR deanhystad GUI
  Is the interpreter that c... 2 hours ago helendamdam helendamdam General Codin...
  extracting data from a us... 2 hours ago Perry Perry General Codin...
  pip install requests does... Yesterday, 14:48 misodca DeaD_EyE General Codin...
  Creating a Mindmap progra... 09-23, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... 09-23, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... 09-23, 03:29 Littlefish Littlefish General Codin...
  Using a For Loop to subtr... 09-22, 20:56 Anunderling deanhystad General Codin...
  403 error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
Most views
  The best Prog... 576840
  Tutorial Requ... 499288
  Web Scraping ... 440624
  Newbie with P... 384598
  New Users Int... 368509
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12088
buran 8176
snippsat 7367
deanhystad 6895
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Perry Today
bianchiluca116 Yesterday
Jorgecog Yesterday
adamsmith12 Yesterday
Ronny Yesterday

User Panel Messages

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