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,956
» Latest member: Jamirul
» Forum threads: 38,728
» Forum posts: 175,529

Full Statistics

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

Latest Threads
extracting data from a us...
Forum: General Coding Help
Last Post: DeaD_EyE
1 hour ago
» Replies: 2
» Views: 97
How to retrieve money los...
Forum: General Coding Help
Last Post: samuel223
2 hours ago
» Replies: 1
» Views: 14
how to export a dictionar...
Forum: GUI
Last Post: Pedroski55
Today, 03:45 AM
» Replies: 3
» Views: 159
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
Today, 01:04 AM
» Replies: 0
» Views: 349
pip install requests does...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 02:48 PM
» Replies: 10
» Views: 29,390
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Sep-23-2025, 12:00 PM
» Replies: 4
» Views: 9,406
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Sep-23-2025, 09:08 AM
» Replies: 0
» Views: 286
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Sep-23-2025, 03:29 AM
» Replies: 2
» Views: 738
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 938
403 error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 5,194

 
  How to append to a set in Python
Posted by: dgrunwal - Oct-01-2020, 02:18 PM - Forum: General Coding Help - Replies (7)

I am trying to append to a set and getting the following error:

AttributeError: 'dict' object has no attribute 'append'

[python]lst = [3, 3, 22,..... More

Print this item

  Dividing list into subsets
Posted by: Michael11 - Oct-01-2020, 12:26 PM - Forum: Homework - Replies (10)

A list is given. You know the number of sticks with which we divide our list into subsets. The rules of division is that the sum of elements in each p..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  extracting data from a us... 1 hour ago Perry DeaD_EyE General Codin...
  How to retrieve money los... 2 hours ago samuel223 samuel223 General Codin...
  [Tkinter] how to export a... Today, 03:45 RonR Pedroski55 GUI
  Is the interpreter that c... Today, 01:04 helendamdam helendamdam 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...
Most views
  The best Prog... 576852
  Tutorial Requ... 499385
  Web Scraping ... 440629
  Newbie with P... 384603
  New Users Int... 368565
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
Jamirul Today
samuel223 Today
Perry Today
bianchiluca116 Yesterday
Jorgecog Yesterday

User Panel Messages

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