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,582
» Latest member: Earnestinome
» Forum threads: 38,671
» Forum posts: 175,237

Full Statistics

Online Users
There are currently 242 online users.
» 0 Member(s) | 235 Guest(s)
Applebot, Baidu, Google, Bing, Yandex, Mojeek

Latest Threads
SECURE AND RETRIEVE YOUR ...
Forum: News and Discussions
Last Post: jadenthom9
1 hour ago
» Replies: 0
» Views: 20
How to add Permanent Sign...
Forum: General Coding Help
Last Post: vmars316
3 hours ago
» Replies: 0
» Views: 44
veri kazıma
Forum: Web Scraping & Web Development
Last Post: fehmikonkur
5 hours ago
» Replies: 9
» Views: 223
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: Jmathew1
Yesterday, 06:20 AM
» Replies: 4
» Views: 6,458
Post Body (for "Forum Usa...
Forum: Board
Last Post: hihi
Jul-20-2025, 06:17 AM
» Replies: 0
» Views: 65
None collapsing Tuple at ...
Forum: Code Review
Last Post: hihi
Jul-20-2025, 05:21 AM
» Replies: 0
» Views: 93
Label & OptionMenu widget...
Forum: GUI
Last Post: slate
Jul-20-2025, 02:21 AM
» Replies: 2
» Views: 157
Code stoped working
Forum: News and Discussions
Last Post: DeaD_EyE
Jul-19-2025, 10:55 AM
» Replies: 2
» Views: 178
ASCII-Codec in Python3 [S...
Forum: General Coding Help
Last Post: Gribouillis
Jul-19-2025, 08:53 AM
» Replies: 6
» Views: 10,556
How scan all ips from mai...
Forum: Networking
Last Post: MaahirThomas
Jul-18-2025, 07:09 PM
» Replies: 2
» Views: 424

 
  Multiple variable inputs when only one is called for
Posted by: ChrisDall - Oct-19-2023, 10:15 PM - Forum: General Coding Help - Replies (2)

Hi all, trying to run a python code (not mine) that used a function generate_index(arg). The arg function is actually meant to have 5 parts (host, gra..... More

Print this item

  What a difference print() makes
Posted by: Mark17 - Oct-19-2023, 06:49 PM - Forum: General Coding Help - Replies (2)

Hi all,

list1 = ["cat", "dog", "cat", "dog"]
list1.index("cat")
list1.count("dog")
If I enter that in a Jupyter Notebook cell..... More

Print this item

  Better python library to create ER Diagram by using pandas data frames as tables
Posted by: klllmmm - Oct-19-2023, 12:59 PM - Forum: General Coding Help - No Replies

I'm looking for a better python library to create ER diagrams.

I want to input pandas tables as tables and then add relationships between tables.
..... More

Print this item

  Waiting screen until user input - PiBooth
Posted by: world90 - Oct-19-2023, 06:29 AM - Forum: Game Development - Replies (4)

hey guys,

in advance: I'm new in PyGame.

I'm working on a photo booth / photo box with the software "PiBooth" - https://github.com/pibooth/piboo..... More

Print this item

  newbie question - can't make code work
Posted by: tronic72 - Oct-19-2023, 06:07 AM - Forum: General Coding Help - Replies (2)

Hi,

New to python and doing a course by Mosh. I have a tutorial with the following code that will NOT work no matter what I do.

[python]class A..... More

Print this item

  Using Autostart to run a GUI program at startup. Rpi
Posted by: Edward_ - Oct-19-2023, 01:00 AM - Forum: General Coding Help - Replies (1)

I have been using an autostart display.desktop file as explained in Sec. 3 ..... More

Print this item

  How to run a linear model by group in Python?
Posted by: Betty775522 - Oct-18-2023, 07:09 PM - Forum: Data Science - No Replies

Dear all,
I’m beginning with Python that I need to use to run a linear model for the dataset below :
[output]Location Y X1 X2
1 32 ..... More

Print this item

  subtract 2 datetime string
Posted by: jss - Oct-18-2023, 02:40 PM - Forum: General Coding Help - Replies (4)

I have a code like below

from datetime import datetime
time_uploaded="2023-09-26T11:22:42.2Z"
time_now =datetime.now()
i ..... More

Print this item

  Error 403 Scraping website
Posted by: cartonics - Oct-18-2023, 02:40 PM - Forum: General Coding Help - Replies (17)

I am tryng to scrape data from forebet website
https://www.forebet.com/en/live-football-tips

[python]from bs4 import BeautifulSoup

import reque..... More

Print this item

  Why does [root.destroy, exit()]) fail after pyinstaller? Rpi
Posted by: Edward_ - Oct-18-2023, 01:29 PM - Forum: General Coding Help - Replies (4)

I have a small GUI app with a close button that works as expected when the app is run in Thonny, but the Exit button code fails in the binary file cre..... More

Print this item

  [split] Issue installing selenium
Posted by: Akshat_Vashisht - Oct-18-2023, 12:10 PM - Forum: General Coding Help - Replies (1)

Selenium was working fine in my system but some connection error were coming, So I have uninstalled it. Now, After restarting the system I am unable t..... More

Print this item

  how to parse with BeautifulSoup
Posted by: Larz60+ - Oct-18-2023, 11:22 AM - Forum: General Coding Help - Replies (3)

This format is confusing me.

What is the best way to parse into individual components with BeautifulSoup.

html:
[output]
<td class="small">
..... More

Print this item

  problem in entering address of a file in input
Posted by: akbarza - Oct-18-2023, 08:16 AM - Forum: General Coding Help - No Replies

hi
i read https://realpython.com/introduction-to-p...enerators/
there is a ..... More

Print this item

  problem in using input command
Posted by: akbarza - Oct-18-2023, 08:16 AM - Forum: General Coding Help - Replies (4)

hi
i read https://realpython.com/introduction-to-p...enerators/
there is a ..... More

Print this item

  mypy, type aliases and type variables
Posted by: tomciodev - Oct-18-2023, 07:34 AM - Forum: General Coding Help - Replies (1)

I'm not sure, whether it's a good place to ask such question. If it's not, please tell me, where it suits better.

I use Python 3.11/3.12, and mypy ..... More

Print this item

  Writing to CSV Problems
Posted by: gbtur8up - Oct-18-2023, 12:50 AM - Forum: General Coding Help - Replies (1)

Hello all, I'm pretty unfamiliar with Python and am encountering an error with the attached code in writing the output data to a CSV. The idea is to r..... More

Print this item

Video Get a executable file (.exe) from a .py file add a promoted class in a QWidget
Posted by: MiguelonReyes - Oct-17-2023, 11:31 PM - Forum: GUI - No Replies

Hi!! guys,
I am trying to get a .exe file ready to be executed from a click of a button on a screen (QMainWindow). In fact, in the past I have done ..... More


Attached Files

.py   000_Main.py (Size: 6.61 KB / Downloads: 202)
.py   mplwidget.py (Size: 698 bytes / Downloads: 237)
.py   SC002_GetChart_plotter.py (Size: 3.48 KB / Downloads: 246)
Print this item

  Sudoku making with base Python
Posted by: wep - Oct-17-2023, 05:46 PM - Forum: Homework - Replies (1)

Good evening,

i am doing some exercises from the course i am attending and one of them is requiring me to realize with base Python a valid sudoku 4..... More

Print this item

  output values change
Posted by: akbarza - Oct-17-2023, 10:11 AM - Forum: General Coding Help - Replies (3)

hi
int the below code:
[python]
def something(num,my_list):
num=3
my_list[0]=3

a=2
b=[2]
something(a,b)
print(a)
# 2 is printed
p..... More

Print this item

Question mypy unable to analyse types of tuple elements in a list comprehension
Posted by: tomciodev - Oct-17-2023, 09:27 AM - Forum: General Coding Help - Replies (1)

All presented code samples were tested with Python 3.11, and mypy 1.6.0.

And the problem is: mypy sees no problems in the following code:

[pytho..... More

Print this item

  Waiting for input from serial port, then move on
Posted by: KenHorse - Oct-16-2023, 09:27 PM - Forum: General Coding Help - Replies (3)

Why doesn't this leave the while loop?


[python]#wait for % and then move on
indata = ""
Counter = 0
while indata != "%":
indata = ser.rea..... More

Print this item

  Loop through values and compare
Posted by: edroche3rd - Oct-16-2023, 08:38 PM - Forum: General Coding Help - Replies (6)

Hi everyone

My 2nd inquiry as I try to learn Python and ways to expand my network engineering toolkit.

I found a script on Packetswitch by Sures..... More

Print this item

  difference between statement and expression
Posted by: akbarza - Oct-16-2023, 12:39 PM - Forum: General Coding Help - Replies (6)

hi
On the site realpython.com, I saw that was said that yield is a statement.
what is the difference between a statement and an expression in..... More

Print this item

  A more efficient code
Posted by: titanif - Oct-16-2023, 10:49 AM - Forum: General Coding Help - Replies (2)

I just started with Python. I want to add the information of the array ‘toc’ to the array ‘toc_n.’ The first two columns of both ones are ‘year’ and ‘..... More

Print this item

  How would I be able to detect a media player app playing a video.
Posted by: phpjunkie - Oct-16-2023, 02:05 AM - Forum: General Coding Help - Replies (2)

I'm trying to stop windows from powering off the monitor while playing a game or from watching movies and the only way I've found so far is using open..... More

Print this item

  regex findall() returning weird result
Posted by: Radical - Oct-15-2023, 04:31 PM - Forum: General Coding Help - Replies (1)

EDIT: You can likely just skip to the "update" at the bottom of this post.

What I am trying to do is test out regular expression usage ..... More

Print this item

  Modal window
Posted by: DPaul - Oct-15-2023, 06:51 AM - Forum: GUI - Replies (16)

Hi,
I'm getting pretty confused, reading about modal windows in tKinter.
I thought it would be simple.

I have an existing app,where users make a ..... More

Print this item

  Newbie question about switching between files - Python/Pycharm
Posted by: Busby222 - Oct-15-2023, 05:10 AM - Forum: General Coding Help - Replies (3)

Hi all,

My background is not coding, so I am not familiar with coding lingo, everything I know is self taught and my knowledge is limited.

I am usi..... More

Print this item

  permutations algorithm in python
Posted by: monkeyPlus - Oct-15-2023, 12:22 AM - Forum: Code sharing - Replies (1)

for a very fast permutation algoirithm check
https://andrealbergaria.github.io/fastPe...tions.html

Print this item

  TKinter Widget Attribute and Method Quick Reference
Posted by: zunebuggy - Oct-14-2023, 08:27 PM - Forum: GUI - Replies (3)

I made this from compiled data from 3 different Python sites. I find these just as useful as tutorial sites. I thought I'd share. I hope someone els..... More


Attached Files

.xlsx   Python_TKinter_Widget_Reference.xlsx (Size: 22.18 KB / Downloads: 272)
Print this item

  Looking for Part Time Python
Posted by: cbrum11 - Oct-14-2023, 05:53 PM - Forum: Jobs - No Replies

Hi folks,

I'm a mechanical engineer by education but I have been working in software adjacent niches my whole career. I'm looking for part time Py..... More

Print this item

  Can I use logging in a class (without multiple messages)
Posted by: mevan - Oct-14-2023, 04:18 PM - Forum: General Coding Help - Replies (2)

I'm new to using classes. In the code below I'm finding with the use of

log_alt.info()
messages will appear once, as desired. However..... More

Print this item

  Why am I getting this TypeError?
Posted by: pitosalas - Oct-14-2023, 12:22 PM - Forum: General Coding Help - Replies (5)

Maybe it's early morning brain...The line called out is:

self.new_queue = Queue("New", sim)
and the error says:
[error]TypeError: ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Replace a text/word in docx file using Python
Posted by: Devan - Oct-14-2023, 11:31 AM - Forum: General Coding Help - Replies (4)

Hello all,
I have few MS Word documents. I need to replace a particular text in that word document. This particular text can be found in paragraphs o..... More

Print this item

  list in dicitonary element problem
Posted by: jacksfrustration - Oct-14-2023, 11:29 AM - Forum: General Coding Help - Replies (3)

ok so basically im trying to build a workout tracker app. my problem is i want to check if there is already the date inside the json fille so it won't..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  SECURE AND RETRIEVE YOUR ... 1 hour ago jadenthom9 jadenthom9 News and Disc...
  How to add Permanent Sign... 3 hours ago vmars316 vmars316 General Codin...
  veri kazıma 5 hours ago fehmikonkur fehmikonkur Web Scraping ...
  Can I develop a live vide... Yesterday, 06:20 mtrkhan Jmathew1 Web Scraping ...
  Post Body (for "Forum Usa... 07-20, 06:17 hihi hihi Board
  None collapsing Tuple at ... 07-20, 05:21 hihi hihi Code Review
  [Tkinter] Label & OptionM... 07-20, 02:21 slate slate GUI
  Code stoped working 07-19, 10:55 OldMan57 DeaD_EyE News and Disc...
  ASCII-Codec in Python3 [S... 07-19, 08:53 AlphaInc Gribouillis General Codin...
  How scan all ips from mai... 07-18, 19:09 ramin_malek MaahirThomas Networking
  gpiozero buttons stop wor... 07-18, 15:10 duckredbeard deanhystad General Codin...
Most views
  The best Prog... 572793
  Tutorial Requ... 485875
  Web Scraping ... 437252
  Newbie with P... 380276
  Thread remain... 351443
Most reputation
buran 581
snippsat 507
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+ 12073
buran 8177
snippsat 7353
deanhystad 6862
metulburr 5152
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Earnestinome Today
jadenthom9 Today
Fobertsmene Yesterday
netspeck Yesterday
Slackey Yesterday

User Panel Messages

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