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,463
» Latest member: ellena
» Forum threads: 38,575
» Forum posts: 174,797

Full Statistics

Online Users
There are currently 615 online users.
» 2 Member(s) | 605 Guest(s)
Google, Yandex, Twitter, Bing, Baidu, Axel_Erfurt, DeaD_EyE

Latest Threads
Home Directory
Forum: General Coding Help
Last Post: MiguelRaicy
2 hours ago
» Replies: 10
» Views: 8,767
Pip help
Forum: General Coding Help
Last Post: Larz60+
2 hours ago
» Replies: 4
» Views: 282
Paste text with caret alr...
Forum: General Coding Help
Last Post: armorerratic
7 hours ago
» Replies: 2
» Views: 937
problems with netcdf if I...
Forum: General Coding Help
Last Post: Larz60+
10 hours ago
» Replies: 14
» Views: 937
Return a string or byte o...
Forum: General Coding Help
Last Post: DeaD_EyE
10 hours ago
» Replies: 2
» Views: 104
Library Management System
Forum: Homework
Last Post: deanhystad
Yesterday, 01:56 AM
» Replies: 1
» Views: 134
smbus.SMBus i2c code whic...
Forum: General Coding Help
Last Post: NewbyTyro
May-12-2025, 03:51 PM
» Replies: 2
» Views: 258
Why are the PythonT symli...
Forum: News and Discussions
Last Post: gernophil
May-12-2025, 08:10 AM
» Replies: 0
» Views: 121
Send SMS from my phone nu...
Forum: General Coding Help
Last Post: TheTechNexus
May-11-2025, 05:48 PM
» Replies: 4
» Views: 3,809
[SOLVED] [Beautiful Soup]...
Forum: General Coding Help
Last Post: Winfried
May-11-2025, 05:32 PM
» Replies: 3
» Views: 466

 
Video SVG + Python experiments (using pygame-ce and/or cairoSVG)
Posted by: KennedyRichard - Oct-23-2023, 02:54 PM - Forum: Code sharing - Replies (4)

I've been making different experiments/demos with Nodezator and other Python libraries in order to identify programmi..... More

Print this item

  Turtle Star Fill Color Yellow-White Interchanging Color Effect
Posted by: codelab - Oct-23-2023, 02:45 PM - Forum: General Coding Help - Replies (9)

https://docs.python.org/3/_images/turtle-star.png
Does anyone know how this interchanging color is achieved?

Print this item

  A working code to upload a file using sftp?
Posted by: Python_FTP - Oct-23-2023, 10:36 AM - Forum: Networking - Replies (5)

Can anyone share a presently working Python code that uploads a local file to a publicly accessible FTP server for testing purposes? I have tried seve..... More

Print this item

  Use of if - and operators
Posted by: Pedro_Castillo - Oct-23-2023, 10:00 AM - Forum: General Coding Help - Replies (1)

Hi,

Is use of the code below accurate? I believe it is not however, my friend tells me it is.

[python]
age=int(input("Enter your age: "))

if 21<ag..... More

Print this item

  How do I stream and record at the same time with arducam?
Posted by: traderjoe - Oct-23-2023, 12:01 AM - Forum: General Coding Help - No Replies

Hi, I have a raspberry pi 3b with an arducam. I'm trying to stream to a network and record my stream to the pi at the same time. How do I do this?

..... More

Print this item

  Modules
Posted by: menator01 - Oct-22-2023, 05:49 PM - Forum: News and Discussions - No Replies

I'm re-writing my shmup code and breaking it down into modules. My question is, should I put each class into separate modules?
As of now I have a pag..... More

Print this item

  code management
Posted by: trix - Oct-22-2023, 03:26 PM - Forum: General Coding Help - Replies (3)

i was wondering how you normaly have to work with the code files.

i gonna make a big code whit different files, where i have to work on a lot of ti..... More

Print this item

  Returning Column and Row Data From Spreadsheet
Posted by: knight2000 - Oct-22-2023, 07:07 AM - Forum: General Coding Help - No Replies

Hello all,

I'm trying to use the data of a spreadsheet as two variables to iterate through a test webscraper script using pandas, but I'm a little ..... More


Attached Files

.xlsx   importurl.xlsx (Size: 9.65 KB / Downloads: 187)
Print this item

  Help naming functions
Posted by: Fuckingdogma - Oct-22-2023, 02:26 AM - Forum: Homework - Replies (1)

For my assignment, it says to "create a string called Q1 with a word, and then create a function called Q2 that loops through and prints each characte..... More


Attached Files

Thumbnail(s)
   
Print this item

  Filter data into new dataframe as main dataframe is being populated
Posted by: cubangt - Oct-21-2023, 11:31 PM - Forum: General Coding Help - Replies (8)

Is this possible, i am populating a dataframe with a few fields and thousands of rows that will be saved into a CSV. For a separate reason, i need cer..... More

Print this item

  Error: audioio has no attribute 'AudioOut'
Posted by: netwrok - Oct-21-2023, 10:55 PM - Forum: General Coding Help - Replies (3)

Having issues with audioio within CircuitPython giving the error 'audioio' has no attribute 'AudioOut'
AudioOut is used to set the audio interface fo..... More

Print this item

  dynamic variable name declaration in OOP style project problem
Posted by: jacksfrustration - Oct-21-2023, 08:38 PM - Forum: General Coding Help - Replies (3)

Ok so basically im trying to build a flight tracker app. And i have a problem with the gui py file. I have a button that generates variable names usin..... More

Print this item

  When does Python detect Errors?
Posted by: stamp1t - Oct-21-2023, 04:56 PM - Forum: General Coding Help - Replies (1)

Hello, I am currently confused about the different times when errors are detected in Python...

First, for my understanding:
Python initially trans..... More

Print this item

  yield usage as statement or expression
Posted by: akbarza - Oct-21-2023, 11:05 AM - Forum: General Coding Help - Replies (5)

hi
the below code is in site:https://realpyth[url=https://python-forum.io/thread-40962.html]..... More

Print this item

  Authentication server (console)
Posted by: biscoito - Oct-20-2023, 11:44 PM - Forum: Networking - No Replies

Hello people,

I'd like to hear some recommendations regarding authentication using a server (RADIUS,etc) and console. Is there any library or sites t..... More

Print this item

  Simple pygame input box with cursor and character count
Posted by: menator01 - Oct-20-2023, 07:19 PM - Forum: Code sharing - No Replies

[python]
# Do the imports
import pygame
from time import time

# Initiate pygame
pygame.init()

# Create the screen surface and window caption..... More

Print this item

  Need to return 2 values from 1 DF that equals another DF
Posted by: cubangt - Oct-20-2023, 02:54 PM - Forum: General Coding Help - Replies (5)

ok, so i have a script that pings all our registers in the company to check if they are online or offline.. this works great. that script works off a ..... More

Print this item

  pymodbus
Posted by: jreckart - Oct-20-2023, 08:19 AM - Forum: Data Science - Replies (3)

I'm using pymodbus to read modbus data from a controller, using serial over an rs485 to usb. I can read coils, registers,etc all the normal stuff.
My..... More

Print this item

  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: 191)
.py   mplwidget.py (Size: 698 bytes / Downloads: 222)
.py   SC002_GetChart_plotter.py (Size: 3.48 KB / Downloads: 233)
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Home Directory 2 hours ago pgoosen MiguelRaicy General Codin...
  Pip help 2 hours ago meditek Larz60+ General Codin...
  Paste text with caret alr... 7 hours ago Wehaveall armorerratic General Codin...
  problems with netcdf if I... 10 hours ago Blaubart Larz60+ General Codin...
  Return a string or byte o... 10 hours ago Calab DeaD_EyE General Codin...
  Library Management System Yesterday, 01:56 annajoy deanhystad Homework
  smbus.SMBus i2c code whic... 05-12, 15:51 NewbyTyro NewbyTyro General Codin...
  Why are the PythonT symli... 05-12, 08:10 gernophil gernophil News and Disc...
  Send SMS from my phone nu... 05-11, 17:48 aster TheTechNexus General Codin...
  [SOLVED] [Beautiful Soup]... 05-11, 17:32 Winfried Winfried General Codin...
  [SOLVED] [Windows] Change... 05-11, 16:24 Winfried Winfried General Codin...
Most views
  The best Prog... 563124
  Tutorial Requ... 446813
  Web Scraping ... 428148
  Newbie with P... 361810
  Thread remain... 334498
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12050
buran 8169
snippsat 7324
deanhystad 6826
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
ellena Today
MiguelRaicy Today
armorerratic Today
Trabajo Yesterday
pkverma Yesterday

User Panel Messages

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