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,579
» Latest member: Langlais
» Forum threads: 38,632
» Forum posts: 175,029

Full Statistics

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

Latest Threads
PRANK YOUR FRIENDS WITH T...
Forum: Code sharing
Last Post: shailesen
4 hours ago
» Replies: 3
» Views: 3,964
How do select this table ...
Forum: Web Scraping & Web Development
Last Post: MarkMan
5 hours ago
» Replies: 8
» Views: 308
[split] Simple webbot for...
Forum: Code Review
Last Post: Plyth
7 hours ago
» Replies: 3
» Views: 102
Dynamic Module Import Err...
Forum: General Coding Help
Last Post: Pedroski55
Today, 12:07 AM
» Replies: 3
» Views: 151
What Are the Most Overloo...
Forum: News and Discussions
Last Post: Plyth
Yesterday, 03:37 AM
» Replies: 2
» Views: 127
Setting AST node lineno c...
Forum: General Coding Help
Last Post: deanhystad
Jun-18-2025, 09:15 PM
» Replies: 4
» Views: 231
Wish to write a code for ...
Forum: General Coding Help
Last Post: Hasan2025
Jun-18-2025, 06:40 AM
» Replies: 4
» Views: 996
I have a question
Forum: General Coding Help
Last Post: Pedroski55
Jun-18-2025, 04:47 AM
» Replies: 1
» Views: 109
How to produce a CPU load...
Forum: General Coding Help
Last Post: Plyth
Jun-18-2025, 02:19 AM
» Replies: 2
» Views: 143
Venv - Python Virtual Env...
Forum: General Coding Help
Last Post: Larz60+
Jun-17-2025, 02:23 AM
» Replies: 1
» Views: 148

 
  Help with QR Code
Posted by: Miisato - Jun-11-2024, 02:10 AM - Forum: General Coding Help - Replies (4)

Dive into the dirtiest, rawest action on the web with our collection of free forced sex videos. Ready for brutal fucking that'll leave you gasping? We..... More

Print this item

  "[Errno 2] No such file or directory" (.py file)
Posted by: IbrahimBennani - Jun-10-2024, 07:06 PM - Forum: General Coding Help - Replies (13)

Hi to you all,

I am reaching out due to an issue while trying to run a ".py" file on Windows 11 Home Single Language.

After entering this on the..... More


Attached Files

Thumbnail(s)
   
Print this item

  Problems with ploting data
Posted by: vermor - Jun-10-2024, 01:49 PM - Forum: Data Science - Replies (4)

Hello python world, Im new to python just a heads up. Also most of the tags and names are in spanish as its the language we speak and have to deliver ..... More

Print this item

  smtplib send email has no timestamp
Posted by: Pedroski55 - Jun-10-2024, 07:17 AM - Forum: General Coding Help - Replies (2)

I want to send emails to customers automatically. So I am testing with just 5 email addresses to see how it works

I import these

[python]import ..... More

Print this item

  how to test if something is a sequence?
Posted by: Skaperen - Jun-09-2024, 11:54 PM - Forum: General Coding Help - Replies (11)

how to test if something is a sequence (as opposed to merely a list)?

Print this item

  Variable being erased inside of if statement
Posted by: deusablutum - Jun-09-2024, 07:50 PM - Forum: General Coding Help - Replies (8)

On the program I'm currently working on I have a variable that disappears at an if statement and I can't figure out why. Here is sort of what the code..... More

Print this item

  Guidance for the basic concept send/receive a heartbeat signal
Posted by: StefanL38 - Jun-09-2024, 01:40 PM - Forum: General Coding Help - Replies (1)

Hi Everybody,

I have some experience in programming pascal / delphi and C++.
So this means I know the basic concepts. But I have almost no knoweld..... More

Print this item

  Regex to catch what user has put in text box
Posted by: robertkwild - Jun-09-2024, 01:09 PM - Forum: General Coding Help - Replies (26)

hi all,

this is a small snippet from my python flask-wtf code

[python]
class PasswordForm(FlaskForm):
un = StringField('Username', [InputR..... More

Print this item

  How to compare specific elements of a TSV in difflib
Posted by: gonksoup - Jun-08-2024, 12:11 PM - Forum: General Coding Help - Replies (1)

This compare routine works fine to constrain the search to specific rows and columns. However, the column limits are useless if I want to compare 2 T..... More

Print this item

  Formatting DateTime string and and converting it from AM/PM to 24 hours
Posted by: tester_V - Jun-08-2024, 06:53 AM - Forum: General Coding Help - Replies (2)

Greetings!
Here are two snippets, it seems both are right but only first one is working:
I'm confused why the second one is not working:
[python]
dt_s..... More

Print this item

  Is NaN a float?
Posted by: Pedroski55 - Jun-08-2024, 06:19 AM - Forum: General Coding Help - Replies (4)

Is NaN a float?

The girlfriend works for a company that exports agrochemicals. She sent me an Excel with about 250 customers details, mostly in Afr..... More

Print this item

  Warn user of validation error before they click submit
Posted by: robertkwild - Jun-07-2024, 08:17 PM - Forum: General Coding Help - Replies (1)

hi all,

so ive done a flask-wtf form but instead of warning users after they click the “submit button” i want it to warn them before ie as soon as ..... More

Print this item

  how solve: local variable referenced before assignment ?
Posted by: trix - Jun-07-2024, 05:27 PM - Forum: General Coding Help - Replies (5)

hello,

i am writing a code for a stepper motor, it moves from the left to the right.
i limit the movement with a software limit.
if the stepper g..... More

Print this item

  Reading an ASCII text file and parsing data...
Posted by: oradba4u - Jun-07-2024, 04:55 PM - Forum: General Coding Help - Replies (2)

I have attached a sample Scores file from a HR Derby app (qaz.txt). it is an ASCII text file.
I am attempting to write a python program to read this ..... More


Attached Files

.py   derby_read.py (Size: 1.89 KB / Downloads: 134)
.txt   qaz.txt (Size: 35.87 KB / Downloads: 128)
Print this item

  colomns error
Posted by: konya42 - Jun-07-2024, 08:18 AM - Forum: General Coding Help - No Replies

[python][quote]import pandas as pd

# Location of the Excel file and the name of the sheet
file_path = r'C:\Users\elf\Desktop\BUY.xlsx'
sheet_name..... More

Print this item

  Most efficient way to roll through a pandas dataframe?
Posted by: sawtooth500 - Jun-07-2024, 03:31 AM - Forum: General Coding Help - Replies (2)

See the below example of a pandas df.

Assumptions - The datetime index will ALWAYS be at 1 second interval

So I need a "rolling" window of this..... More

Print this item

  Explosion hits enemies, they explode as well
Posted by: flash77 - Jun-06-2024, 07:22 PM - Forum: Game Development - Replies (4)

Hello,
I'm currently programming a small game and, apart from 2 topics, I'm almost finished. There is one topic I would like to ask about today. When..... More

Print this item

  HTTP, python size e upload file
Posted by: it6 - Jun-06-2024, 01:06 PM - Forum: Networking - No Replies

Hello everyone,

I need to use the HTTP API of transfernow (https://developers.transfernow.net/) to implement a Python application that allows you t..... More

Print this item

  Do any of you work with a devopment team?
Posted by: phpjunkie - Jun-06-2024, 08:26 AM - Forum: Bar - Replies (1)

If you do, do you have a supervisor that checks your code?

Print this item

Question Tetris... xpos, ypos of next block is not initialized after hard drop
Posted by: dddd123p - Jun-06-2024, 06:05 AM - Forum: Game Development - No Replies

(sorry poor english)
Hello.
I have trouble in making tetris.
I can't make xpos, ypox of next block be initialized after hard drop.
How I mo..... More

Print this item

  Downloading Page Source From URL List
Posted by: zunebuggy - Jun-05-2024, 06:51 PM - Forum: General Coding Help - Replies (11)

[python]from urllib.request import urlopen
from pathlib import Path

with open(r'D:\Desktop\sites.txt', 'r', encoding='UTF-8') as file:
while ..... More

Print this item

  raspberry pi in a python script
Posted by: Raysz - Jun-05-2024, 12:44 PM - Forum: General Coding Help - Replies (5)

Quote:Hey everyone
so I have this simple function for my raspberry pi
and I made a python file it does work

[python]
from gpiozero ..... More

Print this item

  Webscrape script, add to run every day at a specific time
Posted by: jjcooper - Jun-04-2024, 05:51 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello,

I have the following code which pulls data from the web (Booking.com). Does anyone know how to add code to it which would run it every day a..... More

Print this item

  <Figure size 640x480 with 0 Axes> problem during plotting in matplotlib
Posted by: Kashfi - Jun-04-2024, 12:07 PM - Forum: Data Science - Replies (1)

I am trying to plot a PDP plot using Matplotlib, but I find an error that indicates that figures were created but nothing was drawn on it.
This is my..... More


Attached Files

Thumbnail(s)
       
Print this item

  Error Calculating Circle Area in Python
Posted by: aaronramsdale - Jun-04-2024, 07:20 AM - Forum: General Coding Help - Replies (1)

I'm working on a Python script to calculate the area of different shapes. I have functions defined for calculating the area of a square and a rectangl..... More

Print this item

  Having difficulty with threads and input()
Posted by: sawtooth500 - Jun-03-2024, 07:34 PM - Forum: General Coding Help - Replies (13)

Hello,

I have the below function running on it's own thread:

[python]
def handle_input(ws, stop_event):
while not stop_event.is_set():
..... More

Print this item

  DEC pack, unpack and disk-images
Posted by: Curbie - Jun-03-2024, 06:57 PM - Forum: General Coding Help - Replies (32)

Pyton newbie here, but programming in one language or another 50 years. Someone who’s opinion I trust said I should look into python because of it’s r..... More

Print this item

Shocked async was never was never awaited but the await is still in the code
Posted by: Nietzsche - Jun-03-2024, 05:00 PM - Forum: General Coding Help - Replies (3)

Hello, in this script i get an freezing window after i activate the checkbox IR raw:

[python]import pyqtgraph as pg
from PyQt6.QtWidgets import QM..... More

Print this item

  3-d surface plotting
Posted by: Tuxedo - Jun-03-2024, 04:59 PM - Forum: General Coding Help - Replies (11)

Looking for a Python package for publication quality 3d surface plots. The surfaces I deal with have just a single peak but can have odd shapes near ..... More

Print this item

  Please Help With Syntax - New To Python 3
Posted by: jgbarber65 - Jun-03-2024, 03:07 PM - Forum: General Coding Help - Replies (4)

I am new to Python 3, old to BASIC and VB. I have a text list of URLs and I want to increment through the list and simply save the HTML of each URL a..... More

Print this item

  Troubleshooting Jupyter Notebook installation with Python using pip and a venv
Posted by: Drone4four - Jun-03-2024, 01:00 AM - Forum: General Coding Help - Replies (1)

I’m struggling to set up and manage my Jupyter Notebook development environments.

..... More

Print this item

  Extracting the correct data from a CSV file
Posted by: S2G - Jun-02-2024, 08:07 PM - Forum: General Coding Help - Replies (6)

Writing a code where I can extract data from this file.

.csv   satellites.csv (Size: 8.59 KB / Downloads: 196)
Someone able to help to write a code that can, for example:

"Print a..... More

Print this item

Bug Debugging live plotting data
Posted by: Nietzsche - Jun-02-2024, 03:59 PM - Forum: General Coding Help - Replies (1)

Hello,

i have an phyton script for live plotting data. First i send 2 arrays via 100 numbers via ble to my PC (esp32 C++). Then i handle the data in ..... More

Print this item

Bug Copying methods to effect the new owner instead of the old instance
Posted by: Daniel285 - Jun-02-2024, 02:02 PM - Forum: General Coding Help - Replies (2)

Here is my code, with a small debug loop...

[python]
class foo:
def __init__(self, message="hello Damien", rotation=0):
self.message..... More

Print this item

  is this a valid variable name?
Posted by: Skaperen - Jun-02-2024, 03:07 AM - Forum: General Coding Help - Replies (6)

i have a str and i want to test if it is a valid variable name in the running version of Python. is str.isalpha() sufficient to perform such a..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  PRANK YOUR FRIENDS WITH T... 4 hours ago Spyros_dev shailesen Code sharing
  How do select this table ... 5 hours ago MarkMan MarkMan Web Scraping ...
  [split] Simple webbot for... 7 hours ago AB073 Plyth Code Review
  Dynamic Module Import Err... Today, 00:07 DaddyMAN Pedroski55 General Codin...
  What Are the Most Overloo... Yesterday, 03:37 shreyapatel Plyth News and Disc...
  Setting AST node lineno c... 06-18, 21:15 voidtrance deanhystad General Codin...
  Wish to write a code for ... 06-18, 06:40 Hasan2025 Hasan2025 General Codin...
  I have a question 06-18, 04:47 Clictithe Pedroski55 General Codin...
  How to produce a CPU load... 06-18, 02:19 Calab Plyth General Codin...
  Venv - Python Virtual Env... 06-17, 02:23 DanneA Larz60+ General Codin...
  Webscraping: Attendance L... 06-17, 02:20 ThatsMe Larz60+ Web Scraping ...
Most views
  The best Prog... 572267
  Tutorial Requ... 484757
  Web Scraping ... 436808
  Newbie with P... 379631
  Thread remain... 351217
Most reputation
buran 581
snippsat 507
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 450
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12067
buran 8173
snippsat 7337
deanhystad 6838
metulburr 5151
Top referrers
Googlepro 24
python 6
metulburr 6
NonEntity 5
as1221 3
Newest members
Langlais Today
ethan897 Today
DavidZergo Today
Dnfsdd8hfn2 Today
Zefin7 Today

User Panel Messages

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