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,288
» Latest member: jackhunter
» Forum threads: 38,793
» Forum posts: 175,881

Full Statistics

Online Users
There are currently 39 online users.
» 3 Member(s) | 33 Guest(s)
Bing, Google, AOL, lovedeep, kshahzad1985, Ninja2112

Latest Threads
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
6 minutes ago
» Replies: 5
» Views: 31
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 12:05 PM
» Replies: 5
» Views: 144
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 53
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,488
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 150
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 68
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,081
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,303
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 388
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 223

 
  Python Homework Help *Urgent
Posted by: GS31 - Nov-24-2019, 04:43 AM - Forum: Homework - Replies (2)

Hello everyone, first time posting here and just wanted some help with some python homework. I've been taking a GIS college program which consists of ..... More

Print this item

  Tkinter Class
Posted by: pythonenthusiast2 - Nov-24-2019, 02:28 AM - Forum: GUI - Replies (1)

Hi,

I need some help understanding the class in the code below. I am using the code to learn from and have searched the internet and have not fou..... More

Print this item

  how to pass data between modules while importing
Posted by: Skaperen - Nov-24-2019, 01:50 AM - Forum: News and Discussions - Replies (6)

i have 2 modules that are somewhat related. they both get imported in sequence, usually with nothing between being imported, by the script that needs..... More

Print this item

  Data Dictionaries in Python
Posted by: mrsenorchuck - Nov-24-2019, 01:31 AM - Forum: General Coding Help - Replies (16)

Hello,

Hope you are well.

I want to load the all time premier league table in to a a data dictionary in phyton, https://en.wikipedia.org/wiki/Pr..... More

Print this item

  Referencing class
Posted by: bongielondy - Nov-23-2019, 11:58 PM - Forum: Data Science - No Replies

I used VADER for sentiment analysis. However the examples I used to customise my code reference the class when printing the accuracy_score. VADER is a..... More

Print this item

  Could any one help me to evaluate this function.
Posted by: jinghui - Nov-23-2019, 11:15 PM - Forum: News and Discussions - Replies (5)

Dear all,
I am a student in university and a professor teaching python provided an function example

[python]
def calculator(num1=int(input("Type ..... More

Print this item

  itertuples, new column, datetime, pandas
Posted by: karlito - Nov-23-2019, 09:11 PM - Forum: Data Science - Replies (6)

Hi,

I'm trying to select a range in a dataframe every time x <= 20 and create a new dataframe with a column which is the sum of the selected rows (..... More

Print this item

  Controlling multiple portfolios
Posted by: semantina - Nov-23-2019, 08:54 PM - Forum: Data Science - Replies (1)

Hello,
Wanted to ask how this can be done. An analytical model generates 5 trade ideas each hour. These trade ideas need to be placed immediately at ..... More

Print this item

  help with a call
Posted by: PyPy - Nov-23-2019, 08:52 PM - Forum: General Coding Help - Replies (3)

hi all,

I have a class which has a method which sort data in it. I need to create another method to check if data object I am dealing with is sorte..... More

Print this item

  Circle Game: My first game using a graphical library
Posted by: Flux3on - Nov-23-2019, 07:43 PM - Forum: Code sharing - Replies (3)

Hello everyone,
Over the past week I have been making a game in Python using the graphical library Pyxel (https:/[url=https://python-forum.io/thread-22711.html]..... More

Print this item

  number repeating twice in loop
Posted by: JonnyEnglish - Nov-23-2019, 07:08 PM - Forum: General Coding Help - Replies (3)

Hi,
can you help me understand why the number 9 repeats twice when i run this loop?

[python]import math

digits = 123456789
reversed_numbers =..... More

Print this item

  I can't send topic
Posted by: AndrzejB - Nov-23-2019, 06:34 PM - Forum: Bar - Replies (1)

My posts are marked as spam, first I give examaple with downloader with web address, next I removed this line, but still I can' t post

Print this item

  Convert weekly sequences to date and time.
Posted by: SinPy - Nov-23-2019, 05:20 PM - Forum: General Coding Help - No Replies

I have an optimization model that returns long time series of numbers. Each week has 36 values. Each value represents a different number of hours. The..... More

Print this item

  networkx to show traffic help to get started
Posted by: paul41 - Nov-23-2019, 05:19 PM - Forum: Data Science - No Replies

I am going to be using both networkx and matplotlib to produce a graph.

The graph data input is 'currently' in the format of a dictionary. The dic..... More

Print this item

  Using Input() in If...Elif Statements
Posted by: Shemira - Nov-23-2019, 04:53 PM - Forum: General Coding Help - Replies (11)

How would I make it so the user only has to type heal once?

[python]
if (input() == "hunt"):
print("You encountered a slime! What would you l..... More

Print this item

  How to Continuously Remove Letters from Words
Posted by: ZQ12 - Nov-23-2019, 04:48 PM - Forum: General Coding Help - Replies (1)

I'm trying to write a program which prompts the user for a word. Then, the program will ask what letter should be removed, only allowing one letter at..... More

Print this item

  find max() value
Posted by: tuxandrew - Nov-23-2019, 04:36 PM - Forum: General Coding Help - Replies (13)

list1=[10,20,30,40,60]
list2=[30,40,60,70,20]
list3=[90,30,50,30,20,10]

How to print

 max() 
values of each lists using a loop?..... More

Print this item

  tkinter button not accessing the command when clicked
Posted by: jhf2 - Nov-23-2019, 03:30 PM - Forum: GUI - Replies (1)

I am making a tkinter program where I want one button (button1) always on the screen. Every time that button is clicked I want a new button (button2) ..... More

Print this item

  moves in Tic-Tac-Toe
Posted by: marek12 - Nov-23-2019, 03:30 PM - Forum: Homework - Replies (3)

I have a string "x-xoxoo--" which meeans a satge in a game Tic-Tac-Toe

x|-|x
 o|x|o
o|-|-
I kn..... More

Print this item

  TypeError: Not supported between instances of 'function' and 'int'
Posted by: palladium - Nov-23-2019, 01:24 PM - Forum: General Coding Help - Replies (9)

Hi all, I am new to programming and am trying (learning) to build a calculator to calculate the risk of heart diseases based on a few variables. Part ..... More

Print this item

  8 image grid with automatical image resize by screen resolution
Posted by: AlexanderO - Nov-23-2019, 11:16 AM - Forum: GUI - Replies (3)

Hello everybody,
i am very new in python and have a problem.
I use Python 3 on a Raspberry.
I wanted to have a little program what have an full w..... More

Print this item

  problems sending BIN file with XMODEM python
Posted by: shaya2103 - Nov-23-2019, 10:27 AM - Forum: General Coding Help - No Replies

Hello my freinds,


i am trying to send a bin file which i already tested with teraterm before.
the reciever is an energy meter, i am connected to..... More

Print this item

  Handling exception from a module
Posted by: dchi2 - Nov-23-2019, 09:18 AM - Forum: General Coding Help - Replies (11)

Very new to python, grew up on PHP. I'm using the pdftitle module, for its intended purpose, don't seem to be able to gracefully handle it throwing e..... More

Print this item

  if stack variations ... pythonic consideration
Posted by: Skaperen - Nov-23-2019, 05:35 AM - Forum: News and Discussions - Replies (4)

i would like to know if these six code samples would be different enough to consider which would be the best performer and if this would be a pythonic..... More

Print this item

  Unicode string index problem
Posted by: luoheng - Nov-23-2019, 03:22 AM - Forum: General Coding Help - Replies (6)

Hey, guys. I met a problem when indexing a unicode string.
Here is the code:

>>> string = "ábcdefg"
>>> string[0]
a
The ind..... More

Print this item

  Password Reveal Icon
Posted by: Evil_Patrick - Nov-23-2019, 03:11 AM - Forum: GUI - Replies (2)

Is there any Function in the Entry widget for Password reveal in Tkinter or in any other Python GUI Framework like Kivy, PyQt or WxPython?


[img]h..... More

Print this item

  Need help with defining messages and player guesses in a lottery
Posted by: Kanashi - Nov-23-2019, 02:43 AM - Forum: General Coding Help - Replies (3)

Hello, I'm experimenting with the definition function and have stumbled upon a problem which I do not know how to make it work.
I'm making a very sim..... More

Print this item

  Functions running before they should be - Python Tkinter logic error
Posted by: jhf2 - Nov-22-2019, 11:03 PM - Forum: GUI - Replies (2)

I am creating a tkinter program. There is always one button - 'Place' - on the screen. When that button is clicked I want two more buttons to appear a..... More

Print this item

  SyntaxError: invalid syntax
Posted by: Kanashi - Nov-22-2019, 10:13 PM - Forum: General Coding Help - Replies (9)

Hey, I'm coding a text based game and stumbled upon a problem when debugging the first demo.
I receive this error when running the game:

line 97
..... More

Print this item

  Basic Boolean homework help
Posted by: StillAnotherDave - Nov-22-2019, 09:08 PM - Forum: Homework - Replies (9)

Hello folks,

I'm a physics student with a single module in python which isn't supported with detailed notes on how to do things! I'm hoping for so..... More

Print this item

  omitting arguments in function/method calls
Posted by: Skaperen - Nov-22-2019, 08:49 PM - Forum: News and Discussions - Replies (10)

is there a way, in a call to a function that expects 3 arguments, to omit only the 2nd argument?

Print this item

  Problems with jump code in pygame
Posted by: Joningstone - Nov-22-2019, 08:42 PM - Forum: Game Development - Replies (4)

Hello!
I' ve started learning pygame after I learned some python. But than I got to the problem with jumping code. When I press space it goes up and ..... More

Print this item

  Iterating through a list of strings
Posted by: Ash_Ren - Nov-22-2019, 08:21 PM - Forum: General Coding Help - Replies (1)

HELLO. I AM TRYING TO COUNT G'S AND C'S IN A LIST OF STRINGS AND HAVE THE LOOP PUT OUT THE GC COUNT AND THEN CALCULATE A GC PERCENTAGE. I HAVE TRIED V..... More

Print this item

  Why the multithread does not reduce the execution time?
Posted by: Nicely - Nov-22-2019, 07:44 PM - Forum: General Coding Help - Replies (2)

Hello everyone,
I explain my situation to you, maybe someone can clear me up and put a piece of my ignorance Confused .
I had to recover photos..... More

Print this item

  Problem with music - Pygame.error
Posted by: GaseBall - Nov-22-2019, 07:32 PM - Forum: Game Development - Replies (1)

Hi, few days ago my game was running without any problems but then I wanted to compile it from .py to .exe and it doesnt run on .exe. It says - Traceb..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  PyQt5 - Get a parameter f... 6 minutes ago Ninja2112 deanhystad GUI
  data fetching for indian ... Yesterday, 12:05 drakhsin snippsat Web Scraping ...
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 11-20, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... 11-19, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
Most views
  The best Prog... 579291
  Tutorial Requ... 512150
  Web Scraping ... 442196
  Newbie with P... 386306
  New Users Int... 379749
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+ 12109
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
jackhunter Today
EmilyCarter Today
xdimbah Today
IsmaelSlalk Today
Stephenchers Today

User Panel Messages

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