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,980
» Latest member: Joliekeva
» Forum threads: 38,732
» Forum posts: 175,564

Full Statistics

Online Users
There are currently 49 online users.
» 0 Member(s) | 41 Guest(s)
AOL, Google, Bing, Mojeek, Twitter

Latest Threads
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
45 minutes ago
» Replies: 4
» Views: 1,948
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Yesterday, 07:43 AM
» Replies: 2
» Views: 380
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:21 AM
» Replies: 2
» Views: 1,012
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,067
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 743
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,049
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,492
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,069
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,524
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,409

 
  Input() function not working in VS Code
Posted by: darpInd - Feb-16-2020, 03:57 PM - Forum: General Coding Help - Replies (7)

I am new to programming -- just doing simple hand-on and input function is not working in VS Code (Anaconda). just tried same thing in Juptyr notebook..... More

Print this item

  How to use unittest module ?
Posted by: binhduonggttn - Feb-16-2020, 01:05 PM - Forum: General Coding Help - Replies (1)

I have a YAML config file and a Python ConfigManager file used to check connection to database. I need to write some test cases for my ConfigManager f..... More

Print this item

  Timer keeps coming up with a non-callable int object
Posted by: birdwatcher - Feb-16-2020, 11:56 AM - Forum: General Coding Help - Replies (1)

Hey guys, birdwatcher here.

I am writing some code for a robot that I am building (the Robocon 2020 robot) and I am trying to set a timer so that aft..... More

Print this item

  Graphics CANVAS resolution
Posted by: brievenbusrjvos - Feb-16-2020, 11:34 AM - Forum: GUI - Replies (1)

Can someone tell me where to find the graphics canvas specifications from Python? If not may be can be explained?
I have looked everywhere and cannot..... More

Print this item

  BeautifulSoup4 plugin help
Posted by: Lathem01 - Feb-16-2020, 09:01 AM - Forum: Web Scraping & Web Development - Replies (2)

Im new to Python and finding difficulty understanding some code.

when using the Beautifulsoup4 plugin, I want to search through a source code text...... More

Print this item

  print name of def
Posted by: ceciacd79 - Feb-16-2020, 07:55 AM - Forum: General Coding Help - Replies (2)

Hello. I would like to know if there is a way to derive the name of the function that has an exception.
I would like to better highlight through debu..... More

Print this item

  class question
Posted by: jrauden - Feb-16-2020, 05:55 AM - Forum: General Coding Help - Replies (1)

When you run this little program it prints out:
Inside the Simple constructor
constructor argument
constructor argument
A message: None

Wha..... More

Print this item

  dynamic f-string example
Posted by: Skaperen - Feb-16-2020, 03:53 AM - Forum: Code sharing - Replies (6)

you might want to put this script in your python examples folder. you won't likely ever need to do this, but if some day you need to dynamically chan..... More

Print this item

  Desktop prank
Posted by: michael1789 - Feb-16-2020, 02:38 AM - Forum: Bar - Replies (2)

I learned a prank. Likely and old one, but whatever.

Replace someone's wallpaper with a screenshot of their desktop and hide all their icons in a ..... More

Print this item

  Type hints and style
Posted by: MaxPowers - Feb-15-2020, 10:58 PM - Forum: General Coding Help - Replies (1)

So, I am struggeling with type hints in function definitions. Annotated function definitons cause formatting issues in the simplest cases. They force ..... More

Print this item

  How to get the selected item from Listbox and convert it to int?
Posted by: Jionni - Feb-15-2020, 10:35 PM - Forum: GUI - Replies (8)

Hi,

how can I convert the selected item from Listbox and convert into integer for using in my code?

Here is the code:

[img]C:\Users\PC\Deskto..... More

Print this item

  Could These Two Threads Of Mine Be Moved To This Forum ?
Posted by: eddywinch82 - Feb-15-2020, 10:28 PM - Forum: General Coding Help - Replies (1)

Hi there,

Could the following two Threads of mine, be moved to this Forum please, by a Moderator, if that is okay ?

This Thread :-

https://py..... More

Print this item

  How does this code know to use the key of a dictionary
Posted by: renveg - Feb-15-2020, 08:13 PM - Forum: General Coding Help - Replies (1)

I am going though Automate the boring stuff with Python and in a section manipulating strings, there is this script:

[python]# this program is an i..... More

Print this item

  Please Help with My First Python Attempt
Posted by: deep_12 - Feb-15-2020, 07:02 PM - Forum: Homework - Replies (3)

Write a program to simulate a simple guessing number game , specify how many guesses the user can do , and then ask them for a guess. Then it prints o..... More

Print this item

  Running problem
Posted by: cristipatras - Feb-15-2020, 07:02 PM - Forum: General Coding Help - Replies (4)

Does anyone know why my code returns only a few directories, instead of the needed output?

Print this item

  Function Help
Posted by: DansterTx - Feb-15-2020, 06:50 PM - Forum: Homework - Replies (5)

Hey everyone,

I'm a graduate student taking a Python course, and while the professor is great, his homework is unreasonably difficult. Seeing as ..... More

Print this item

  Read Data from Serial Port
Posted by: PA3040 - Feb-15-2020, 06:28 PM - Forum: General Coding Help - Replies (3)

Hi Team

I am new to this forum

I need to Read Data from Serial port and put data to Entry Widgest
This is the code that I used
It display un..... More

Print this item

  Dynamically Deleting Widget
Posted by: smabubakkar - Feb-15-2020, 04:51 PM - Forum: GUI - Replies (1)

Hi I am using Tkinter and creating Labels ad Combobox Dynamically based on a query result.

While running the query again, i need to delete the wid..... More

Print this item

  Extracting Data from Calendar
Posted by: AgileAVS - Feb-15-2020, 04:22 PM - Forum: Web Scraping & Web Development - Replies (2)

I have a problem in scraping data from website which do not change the URLs when we choose data from ceratin dates with the calendar option given on t..... More

Print this item

  Creating local variables from a string
Posted by: peckjonk - Feb-15-2020, 04:08 PM - Forum: General Coding Help - Replies (2)

I need to create local variables whose names come from an externally specified string. I tried

vars()[varname] = somevalue
This co..... More

Print this item

  How to calculate time in seconds
Posted by: rajeshE - Feb-15-2020, 03:28 PM - Forum: General Coding Help - Replies (1)

Hi,
I have time as below:


t1: 2020-02-13T11:16:30-05:00
t2: 2020-03-13T11:01:56-31:00
t3: 2020-03-13T11:02:42-00:00
I want..... More

Print this item

  manipulation of string in Text widget
Posted by: Stauricus - Feb-15-2020, 02:52 PM - Forum: GUI - Replies (2)

hello everybody
I'm trying to create a simple text editor in Tkinter, to help building HTML pages.
I just write things in the text area, and use but..... More

Print this item

  Returning a value from a tkinter.button call
Posted by: markr0804 - Feb-15-2020, 02:28 PM - Forum: GUI - Replies (4)

I am trying to code without using globals. I am using the tkinter.button (see below) to enter some numbers into a variable. Ideally I want the tkinter..... More

Print this item

  pygame setting borders?
Posted by: thepelican3 - Feb-15-2020, 02:08 PM - Forum: Game Development - Replies (2)

# I am having trouble with the borders around the castle walls?
[python]
import pygame

pygame.init() #Initialize

#============================..... More

Print this item

  Error With Reading Files In Directory And Calculating Values
Posted by: chascp - Feb-15-2020, 01:14 PM - Forum: General Coding Help - Replies (2)

I'm trying to run the following code which carries out some calculations on files I have data for with functions for CentreOfMass and SED.
[python]
..... More

Print this item

  Youtube video transcripts
Posted by: jehoshua - Feb-15-2020, 05:33 AM - Forum: General Coding Help - Replies (3)

Have been testing a Python API that can fetch transcripts from Youtube videos - https://github.com/jdepoix/youtube-transcript-api

Some test scripts..... More

Print this item

  How to make the function to prompt the user repeatedly till he enters a no
Posted by: sbabu - Feb-15-2020, 04:43 AM - Forum: Homework - Replies (3)

[python]def ck_no(prompt):
while True:
try:

lst = (2,3,4)
if prompt not in lst:
..... More

Print this item

  Please help me fix this code
Posted by: huytuong010101 - Feb-15-2020, 04:37 AM - Forum: General Coding Help - Replies (1)

Sorry because my English is not good
My code has big bug here:
When I have only code at line 54 - 55, it will execute line 54, then execute line ..... More

Print this item

  printing a list contents without brackets in a print statement
Posted by: paracelx - Feb-15-2020, 01:45 AM - Forum: General Coding Help - Replies (1)

Using python 3 I am trying the following code. I would like to change the last two lines of the code where the print(*uninvlist, sep=", " is in the di..... More

Print this item

  how can I improve the code to get it faster?
Posted by: aquerci - Feb-15-2020, 12:34 AM - Forum: General Coding Help - Replies (2)

Hi guys,

my script must read a text file and produce an output. it works quite well but a piece of his code is very slow (it because of some instru..... More

Print this item

  Rounding exercise: UnboundLocalError: local variable referenced before assignment
Posted by: Drone4four - Feb-15-2020, 12:29 AM - Forum: Homework - Replies (5)

This is for a personal challenge, not for school.

The task at hand:

Write a function which collects a list of floats as well as a boolean optio..... More

Print this item

  why tuple instead of list
Posted by: Skaperen - Feb-14-2020, 11:50 PM - Forum: News and Discussions - Replies (12)

why should i want to create a tuple instead of a list? or a frozenset instead of a set? or a namedtuple instead of a dictionary? are they more effi..... More

Print this item

  ISNULL/NVL alternative in filter
Posted by: SIARO - Feb-14-2020, 09:32 PM - Forum: Data Science - No Replies

Hi,
I'm very new in data science and Python,so i'm trying now to learn by playing with the data
i'm trying to select data from data Frame where th..... More

Print this item

  How to send an error message
Posted by: Ewilliam51 - Feb-14-2020, 08:18 PM - Forum: General Coding Help - Replies (1)

I'm not quite sure how to structure this question so I'm going to use an example
Let's say I have a program that asks a user for a number which I am ..... More

Print this item

  pygame, help with making a function to detect collision between player and enemy.
Posted by: Kris1996 - Feb-14-2020, 07:51 PM - Forum: Game Development - Replies (3)

Hi guys.

I am making a game in pygame, where you play as a little spaceship and your mission is to shoot aliens. I am struggling on making a functi..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Error: cannot mix str wit... 45 minutes ago ngregistrations Joliekeva General Codin...
  Integer Factorization Too... Yesterday, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... Yesterday, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
Most views
  The best Prog... 577421
  Tutorial Requ... 500876
  Web Scraping ... 441067
  Newbie with P... 385126
  New Users Int... 369664
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+ 12091
buran 8178
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Joliekeva Today
silversimon2 Yesterday
alissapena8 Yesterday
hoki1881 Yesterday
stephaniehendrix Yesterday

User Panel Messages

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