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,438
» Latest member: hosseinmikhak
» Forum threads: 38,552
» Forum posts: 174,697

Full Statistics

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

Latest Threads
paperwriting
Forum: News and Discussions
Last Post: hosseinmikhak
1 hour ago
» Replies: 0
» Views: 28
Easy marriage is among th...
Forum: News and Discussions
Last Post: hosseinmikhak
1 hour ago
» Replies: 0
» Views: 22
[SOLVED] [Beautiful Soup]...
Forum: General Coding Help
Last Post: hosseinmikhak
1 hour ago
» Replies: 3
» Views: 226
Picamera2 commands betwee...
Forum: General Coding Help
Last Post: deanhystad
2 hours ago
» Replies: 1
» Views: 141
How to understand object-...
Forum: General Coding Help
Last Post: deanhystad
2 hours ago
» Replies: 1
» Views: 71
Python script not working...
Forum: Web Scraping & Web Development
Last Post: texwilson47
4 hours ago
» Replies: 2
» Views: 115
PyVisa Query Command fail...
Forum: General Coding Help
Last Post: deanhystad
5 hours ago
» Replies: 1
» Views: 142
[SOLVED] [Beautiful Soup]...
Forum: General Coding Help
Last Post: Winfried
6 hours ago
» Replies: 2
» Views: 113
CSV reader with PyQt6
Forum: Code sharing
Last Post: Axel_Erfurt
10 hours ago
» Replies: 3
» Views: 161
where should DEFAULT_CIPH...
Forum: General Coding Help
Last Post: snippsat
Today, 07:00 AM
» Replies: 8
» Views: 382

 
  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: 115)
.txt   qaz.txt (Size: 35.87 KB / Downloads: 110)
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: 169)
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
  paperwriting 1 hour ago hosseinmikhak hosseinmikhak News and Disc...
  Easy marriage is among th... 1 hour ago hosseinmikhak hosseinmikhak News and Disc...
  [SOLVED] [Beautiful Soup]... 1 hour ago Winfried hosseinmikhak General Codin...
  Picamera2 commands betwee... 2 hours ago GigiG deanhystad General Codin...
  How to understand object-... 2 hours ago snl_9527 deanhystad General Codin...
  Python script not working... 4 hours ago texwilson47 texwilson47 Web Scraping ...
  PyVisa Query Command fail... 5 hours ago dazz deanhystad General Codin...
  [SOLVED] [Beautiful Soup]... 6 hours ago Winfried Winfried General Codin...
  CSV reader with PyQt6 10 hours ago suburbanprojects Axel_Erfurt Code sharing
  where should DEFAULT_CIPH... Today, 07:00 Skaperen snippsat General Codin...
  what name to give to a ne... Yesterday, 21:39 Skaperen Skaperen News and Disc...
Most views
  The best Prog... 557441
  Tutorial Requ... 424440
  Web Scraping ... 422929
  Newbie with P... 350986
  Thread remain... 324891
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 325
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12036
buran 8165
snippsat 7324
deanhystad 6809
metulburr 5151
Top referrers
Googlepro 22
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
hosseinmikhak Today
AlexZolotov Today
ekaintan1590 Today
juanadaniel096 Today
dar Today

User Panel Messages

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