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,422
» Latest member: alexfox
» Forum threads: 38,829
» Forum posts: 176,077

Full Statistics

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

Latest Threads
If I open a file write or...
Forum: General Coding Help
Last Post: bowlofred
3 hours ago
» Replies: 5
» Views: 114
a function to watch files
Forum: News and Discussions
Last Post: Skaperen
Yesterday, 05:21 AM
» Replies: 3
» Views: 747
python re.finditer return...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 02:57 AM
» Replies: 8
» Views: 512
Exponential Number Conver...
Forum: General Coding Help
Last Post: DeaD_EyE
Jan-09-2026, 08:47 PM
» Replies: 4
» Views: 455
Possible bug found, pleas...
Forum: General Coding Help
Last Post: alexajames
Jan-08-2026, 04:31 PM
» Replies: 14
» Views: 805
How to put my game loop i...
Forum: Game Development
Last Post: MarkHenry
Jan-08-2026, 12:47 PM
» Replies: 12
» Views: 7,766
Code failing to ask input...
Forum: Homework
Last Post: perfringo
Jan-08-2026, 06:35 AM
» Replies: 4
» Views: 732
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: OtiliaGen
Jan-07-2026, 07:13 AM
» Replies: 6
» Views: 1,036
Data Science
Forum: Data Science
Last Post: OtiliaGen
Jan-04-2026, 10:20 AM
» Replies: 4
» Views: 3,622
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Jan-02-2026, 12:32 PM
» Replies: 29
» Views: 17,381

 
  Mouse click without use bind
Posted by: ATARI_LIVE - Oct-01-2020, 11:59 AM - Forum: GUI - Replies (8)

I have code with bind which I do not like.
is there another way than bind?
I am looking for counting when the mouse or touchscreen is pressed and ho..... More

Print this item

  multiprocessing difference between Linux and Windows
Posted by: direl - Oct-01-2020, 11:35 AM - Forum: General Coding Help - Replies (2)

I was trying to accept timed input when I noticed that Windows did not behave as I expected. A simplified version of the code to demonstrate this is ..... More

Print this item

  IDLE stops responding upon saving
Posted by: tompi1 - Oct-01-2020, 11:15 AM - Forum: General Coding Help - Replies (2)

Hey people,
IDLE stops responding everytime I try to save a file.
Im running it on Mac Os 10.15.3
I rebooted my computer, that's about as far as my..... More

Print this item

  Make list of dates between today back to n days
Posted by: Mekala - Oct-01-2020, 10:05 AM - Forum: General Coding Help - Replies (3)

Hi,
I want to make list of dates from now back to n days (for example 2 days) with time interval 12hrs.

I use the bewlow code, but its giving me e..... More

Print this item

  TypeError: unsupported operand type(s) for /: 'str' and 'int'
Posted by: enderfran2006 - Oct-01-2020, 09:31 AM - Forum: Homework - Replies (1)

I am confused to why this doesnt work. Can anyone help?
This is the code
[python]
number1 = input("What was the temperature on Monday?")
number2 =..... More

Print this item

  Please Help!
Posted by: bntayfur - Oct-01-2020, 08:00 AM - Forum: Homework - Replies (4)

I tried so many times but i couldn't do it :(
The steps are all below, someone please help me!

Algorithm 1 Greedy Algorithm for the Continuous K..... More

Print this item

  Newbie help combining two scripts
Posted by: emuola - Oct-01-2020, 06:36 AM - Forum: Web Scraping & Web Development - Replies (13)

Hi all. I'm new to Python, but have some experience in HTML/CSS/JS. I'm running Raspberry Pi to be able to monitor my daughter's rabbit in the shed ou..... More

Print this item

  using alternate names in configparser
Posted by: Skaperen - Oct-01-2020, 04:14 AM - Forum: General Coding Help - Replies (6)

an INI i am using configparser to read, modify, and write back has, in each section an option "Name" with a string value that is unique over th..... More

Print this item

  opening files and output of parsing
Posted by: leodavinci1990 - Oct-01-2020, 02:09 AM - Forum: General Coding Help - Replies (4)

So I have the following text file named test.txt containing the following lines:

This is line 1.
This is line 2.
This is line 3.

The foll..... More

Print this item

  insert() but with negative index
Posted by: naughtysensei - Oct-01-2020, 02:06 AM - Forum: Homework - Replies (1)

Inserting items with non-negative index gives expected results:

num = [1, 2, 3]
num.insert(0, "min")
print(num)
[output]['min', 1, 2,..... More

Print this item

  slicing and indexing a list example
Posted by: leodavinci1990 - Oct-01-2020, 01:27 AM - Forum: General Coding Help - Replies (4)

I have the following code:

[python]s = "The quick brown fox jumps over the lazy dog."
words = s.split()
lengths = [[w.lower(), len(w)] for w in w..... More

Print this item

  Missing positional arguments error??
Posted by: hhydration - Oct-01-2020, 12:47 AM - Forum: Homework - Replies (2)

[python]

def lattice_moves(n, m, l):
if n==0 and m==0 and l==0:
return 1
elif n==0 and m==0:
return (lattice_moves(n, m..... More

Print this item

  Settle the tourists into their rooms
Posted by: Katenn - Sep-30-2020, 09:57 PM - Forum: Homework - Replies (10)

There are several rooms in the same hall on the same side of the hall in the hotel. The distance between adjacent rooms equals 1 meter. You know which..... More

Print this item

  My first python project
Posted by: etracher - Sep-30-2020, 08:35 PM - Forum: Code Review - Replies (3)

Hello to everyone here. I have been learning python for a few weeks now with the book 'Learn Python 3 the Hard Way' and Jose Portilla's Udemy Complete..... More

Print this item

  What IDE do you use?
Posted by: JarredAwesome - Sep-30-2020, 08:12 PM - Forum: News and Discussions - Replies (4)

Hey everyone,

I have been programming in python for a few weeks now, and I am starting to get a better handle on it. I am currently using KOMODO ID..... More

Print this item

  Help: Beautiful Soup - Parsing HTML table
Posted by: ironfelix717 - Sep-30-2020, 07:25 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi,

I am trying to get a table from this link:
https://www.wund[url=https://python-forum.io/thread-30022.html]..... More

Print this item

  Uploading images from multipart/data/-from get corrupted
Posted by: jdc18 - Sep-30-2020, 07:16 PM - Forum: Web Scraping & Web Development - No Replies

I am trying to upload images using aws lambdas, I am testing locally with serverless offline. When I upload an image it gets corrupted, but when I upl..... More

Print this item

  How to remove char from string??
Posted by: ridgerunnersjw - Sep-30-2020, 01:17 PM - Forum: General Coding Help - Replies (2)

Good morning....

I have a string being returned '@S0601\r\n'.....I am trying to remove the @ at the front using .replace and .lstrip but to no avai..... More

Print this item

  How to print string multiple times on new line
Posted by: ace19887 - Sep-30-2020, 12:34 PM - Forum: General Coding Help - Replies (7)

How do I get the below to print the output 4 x and each print to start on a new line

[python]name = input("What is your name: ")

age = input("Wh..... More

Print this item

  Tkinter function to clear old canvas and start a fresh "operation"
Posted by: zazas321 - Sep-30-2020, 11:35 AM - Forum: GUI - Replies (5)

Hello. I am using python tkinter to create interface for my application. I have made a very bad spaghetti code initially and managed to get it to work..... More

Print this item

  Pyaudio
Posted by: Souls99 - Sep-30-2020, 10:42 AM - Forum: General Coding Help - Replies (7)

here is my code what i am trying to do is
when in text noting or something else than mentioned in my code do noting and continue till in text someth..... More

Print this item

  ON-SCREEN KEYPAD module
Posted by: ATARI_LIVE - Sep-30-2020, 09:18 AM - Forum: GUI - Replies (1)

Does anyone have module code for the on-screen keypad than the on-screen keyboard?

Thanks!
RAM

Print this item

  Convolution "same" in Python doesn't work as Matlab
Posted by: claw91 - Sep-30-2020, 09:05 AM - Forum: Data Science - Replies (4)

Hello, I'm trying to replicate Matlab's convolution aka conv function.

Matlab's conv works like this:

[quote]w = conv(u,v,shape) returns a subs..... More

Print this item

  "Switch-to-spreadsheet" entry. Feasible in Python?
Posted by: whatspython - Sep-29-2020, 11:48 PM - Forum: General Coding Help - Replies (2)

My situation:

Know almost nothing about coding, and I need to do this...

Hit a switch or button (in this case a switch) outside of the keyboard,..... More

Print this item

  turtle won't crawl
Posted by: Pedroski55 - Sep-29-2020, 10:56 PM - Forum: General Coding Help - Replies (1)

EDIT: a workaround is: restart the shell each time, somehow the window killer remains in memory. Any way to reset this without restarting the shell??
..... More

Print this item

  Completeing the Class
Posted by: baboon - Sep-29-2020, 09:40 PM - Forum: Homework - Replies (1)

Can someone please help me finish this code. I am a college student learning python for the first time and I am stuck at the def getNextToken part

..... More

Print this item

  convert int to other bases
Posted by: Skaperen - Sep-29-2020, 06:11 PM - Forum: General Coding Help - Replies (7)

i have a big int. i want to convert it to a string in base 36. i know of functions to do that in base 10 and base 16 (str and hex). but what about ..... More

Print this item

  DLL load failed
Posted by: flaviu2 - Sep-29-2020, 05:42 PM - Forum: General Coding Help - Replies (5)

I have successfully ran:
pip install --upgrade matplotlib
and then I wrote in my simple Python program:
from matplotlib import pyplot..... More

Print this item

  shorten an if condition
Posted by: naughtysensei - Sep-29-2020, 05:06 PM - Forum: Homework - Replies (2)

Is there a way to write this in short and clean way:

if (x == 'a') or (x == 'e') or (x == 'i') or (x == 'o') or (x == 'u'):

Print this item

  Unable to Update SQLite Table
Posted by: sambanerjee - Sep-29-2020, 02:45 PM - Forum: General Coding Help - Replies (5)

Hi:

I am not able to get the update statement to work :( - any help on what I'm missing ?

[python]c.execute("select DISTINCT Symbol from Stock..... More

Print this item

  Listing data from a list
Posted by: ebolisa - Sep-29-2020, 02:02 PM - Forum: General Coding Help - Replies (1)

Hi,

How do I enumerate the info within the list as a shopping list like this:

0. First WiFi info
1. Second WiFi info
...
n. Last WiFi info

my code ..... More

Print this item

  tkinter| listbox.insert problem
Posted by: Maryan - Sep-29-2020, 01:39 PM - Forum: GUI - Replies (3)

Hi! I'm beginner with tkinter, I have one question.
When I select item from the list, I want to copy it and added again to the same list. However, th..... More

Print this item

  How to create local copies of Python packages so they do not have to be downloaded
Posted by: okhajut - Sep-29-2020, 01:30 PM - Forum: General Coding Help - Replies (3)

So basically there are issues with proxy server at work. They are quite persistent. One way around this is, to download the important packages once an..... More

Print this item

  Where to start?
Posted by: Blainexi - Sep-29-2020, 01:28 PM - Forum: General Coding Help - Replies (5)

Hi, I've been trying to learn python, my goal is to make a bot that can gather data from in-game marketplace and feed that data to a database, and the..... More

Print this item

  P3, openpyxl, csv to xlsx, cell is not number, problem with colorize
Posted by: genderbee - Sep-29-2020, 10:55 AM - Forum: General Coding Help - Replies (1)

Hello,
I am using P3 and openpyxl module for convert CSV to XLSX. But numbers are converted with ' at the beginning. Why?
There is problem th..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  If I open a file write or... 3 hours ago Pedroski55 bowlofred General Codin...
  a function to watch files Yesterday, 05:21 Skaperen Skaperen News and Disc...
  python re.finditer return... Yesterday, 02:57 arbiel Pedroski55 General Codin...
  Exponential Number Conver... 01-09, 20:47 Tuurbo46 DeaD_EyE General Codin...
  Possible bug found, pleas... 01-08, 16:31 Hassher alexajames General Codin...
  How to put my game loop i... 01-08, 12:47 temlotresid6 MarkHenry Game Developm...
  Code failing to ask input... 01-08, 06:35 Phoenix_Narukami perfringo Homework
  sorting a lisr of file pa... 01-07, 07:13 Skaperen OtiliaGen News and Disc...
  Data Science 01-04, 10:20 Oshadha OtiliaGen Data Science
  Merge video with subtitle... 01-02, 12:32 Pavel_47 OtiliaGen General Codin...
  Check if running from she... 01-01, 11:52 rjdegraff42 noisefloor General Codin...
Most views
  The best Prog... 580742
  Tutorial Requ... 522305
  Web Scraping ... 442918
  New Users Int... 388148
  Newbie with P... 387140
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 8197
snippsat 7399
deanhystad 6921
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
alexfox Yesterday
zalexisshulzeo8879 Yesterday
SUMIATI Yesterday
starboy25 Yesterday
zabenjamitop8877 01-10

User Panel Messages

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