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,570
» Latest member: GerardRandall
» Forum threads: 38,633
» Forum posts: 175,023

Full Statistics

Online Users
There are currently 377 online users.
» 1 Member(s) | 372 Guest(s)
Bing, Google, Baidu, Yandex, snippsat

Latest Threads
Dynamic Module Import Err...
Forum: General Coding Help
Last Post: Larz60+
4 hours ago
» Replies: 1
» Views: 71
Providing clear and promi...
Forum: Homework
Last Post: asim18
5 hours ago
» Replies: 0
» Views: 47
What Are the Most Overloo...
Forum: News and Discussions
Last Post: Plyth
8 hours ago
» Replies: 2
» Views: 90
Setting AST node lineno c...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 09:15 PM
» Replies: 4
» Views: 201
How do select this table ...
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 03:52 PM
» Replies: 7
» Views: 255
[split] Simple webbot for...
Forum: Code Review
Last Post: AB073
Yesterday, 01:17 PM
» Replies: 0
» Views: 51
Wish to write a code for ...
Forum: General Coding Help
Last Post: Hasan2025
Yesterday, 06:40 AM
» Replies: 4
» Views: 978
I have a question
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 04:47 AM
» Replies: 1
» Views: 88
How to produce a CPU load...
Forum: General Coding Help
Last Post: Plyth
Yesterday, 02:19 AM
» Replies: 2
» Views: 120
Venv - Python Virtual Env...
Forum: General Coding Help
Last Post: Larz60+
Jun-17-2025, 02:23 AM
» Replies: 1
» Views: 126

 
  Autograder keeps kicking back my code
Posted by: LucaLandi - Aug-23-2024, 11:56 PM - Forum: Homework - Replies (4)

Just started learning to code python. On my second lab and I'm not sure what I'm doing wrong. We have to put our code into the autograder, and it give..... More


Attached Files

Thumbnail(s)
   

.txt   Lab.txt (Size: 1.26 KB / Downloads: 134)
Print this item

  Find strings by index from a list of indexes in a different Pandas dataframe column
Posted by: Calab - Aug-23-2024, 06:09 PM - Forum: Data Science - Replies (3)

Consider the following Pandas dataframes...

[code]df1 = pd.DataFrame(data = [{"id": "One", "served_sites": ["1", "2" ,"3"],},
..... More

Print this item

  Defining a function
Posted by: Hudjefa - Aug-23-2024, 11:12 AM - Forum: General Coding Help - Replies (6)

[python]# Random number generator function

import random

reply = "y"

# Defining the generate_random function
def generate_random(min, max):
ran..... More

Print this item

  extract an element of a list into a string
Posted by: alexs - Aug-23-2024, 04:16 AM - Forum: General Coding Help - Replies (5)

Newbie here, just trying to figure some things out. every time I search on how to do something, i try it and it doesnt work. I dont get it. anyway,..... More

Print this item

  PyInstaller
Posted by: Raysz - Aug-22-2024, 09:15 PM - Forum: General Coding Help - No Replies

I've been using PyInstaller for quite some time now and I have been pretty successful with all my projects
I now have run into a problem where I need..... More

Print this item

  Dictionary using path.
Posted by: Bobbee - Aug-22-2024, 06:30 PM - Forum: General Coding Help - Replies (5)

I have a dictionary:

{'Q_MGR_NAME': 'BOBBEE2', 'START_DATE': '2024-08-21', 'START_TIME': '05.08.47', 'END_DATE': '2024-08-21', 'END_TIME': '05.09.4..... More

Print this item

  Accessing item in the system tray on Windows 11
Posted by: mariox - Aug-22-2024, 05:11 PM - Forum: General Coding Help - No Replies

Hello,
Is there any way to access items in the system tray on Windows 11? I want to get a list of apps inside the system tray but can't find a solut..... More

Print this item

Smile Who can help the SyntaxError: expected ':' for forloop
Posted by: skchui6159 - Aug-22-2024, 02:10 PM - Forum: News and Discussions - Replies (1)

from bs4 import BeautifulSoup
html="""
<html>
<head>
<meta charset="utf-8"/8>
<title>Hello</title>
</head>
<body>
<p>Hellow World1</p>
<p>Hel..... More

Print this item

  Python beginner needs json help
Posted by: rwskinner - Aug-22-2024, 01:06 PM - Forum: General Coding Help - Replies (1)

I have a device that I recieve json messages from and for some reason, finding the keys works on one message but not another. The code worked fine wh..... More

Print this item

  Multiprocessing Managing Help
Posted by: m7md_hka - Aug-22-2024, 09:57 AM - Forum: General Coding Help - No Replies

Hi everyone,

I’m working on a project where I need to handle multiple cameras for vehicle tracking. Each camera has two distinct processes:

Capt..... More

Print this item

  python error
Posted by: otai1 - Aug-22-2024, 08:13 AM - Forum: General Coding Help - Replies (1)

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\tkinter\__init__.py", line 1921, in __call__..... More

Print this item

  Use of the openpyxl library
Posted by: AndreaSpada - Aug-22-2024, 07:17 AM - Forum: General Coding Help - No Replies

Hello, I work in a Windows environment and use the openpyxl library to read and manipulate Excel files.
When installing the application on a new serv..... More

Print this item

  UART how to read 300 bytes ?
Posted by: trix - Aug-21-2024, 05:20 PM - Forum: General Coding Help - Replies (7)

hello,

I actually have to read a row of 300 bytes from a home made scanner.
I send a request to send it, and then I get the 300 bytes sent.
Of co..... More

Print this item

  need help writing a program to run VIN numbers, any advice?
Posted by: Jhins007 - Aug-21-2024, 01:44 AM - Forum: General Coding Help - Replies (4)

Hi all, I have been on the search for about half a year now for a truck my father sold in 2017 after all else has failed I have decided to start runni..... More

Print this item

  Fun CLI Blackjack program in Python!
Posted by: ChristanRas - Aug-21-2024, 12:48 AM - Forum: Code sharing - No Replies

https://github.com/ChristianRas/Blackjack

Print this item

  code timer
Posted by: Curbie - Aug-20-2024, 07:09 PM - Forum: General Coding Help - Replies (2)

While researching code timing online, the following code kept getting the most thumbs-up and always seemed to have a depreciated warning in the commen..... More

Print this item

  library for graphics
Posted by: Skaperen - Aug-20-2024, 12:24 AM - Forum: News and Discussions - Replies (2)

there are lots of graphics tools for Python, as my initial search easily shows. the issue i am running into is that these tools (mostly) seem to be f..... More

Print this item

  Sudden Extremely Slow / Failed Python Imports
Posted by: bmccollum - Aug-19-2024, 03:33 PM - Forum: General Coding Help - Replies (1)

I have numerous Python scripts that I've developed over the years on a VM at my office. 2 days ago, all of a sudden when I was continuing to enhance/..... More

Print this item

  i want to shorten a working section
Posted by: pizzakafz - Aug-19-2024, 03:18 PM - Forum: General Coding Help - Replies (15)

i have a working little number guessing game but there is one long repetitiv section that i dont know how to shorten (the section is beneth the line "..... More

Print this item

  Simplest way to run external command line app with parameters?
Posted by: Winfried - Aug-19-2024, 01:37 PM - Forum: General Coding Help - Replies (2)

Hello,

Out of curiosity, is this the simplest way in Python3 to run an external command-line application with parameters?

Thank you.

[python]from s..... More

Print this item

Sad customtkinter
Posted by: herus - Aug-18-2024, 08:12 PM - Forum: GUI - Replies (2)

[Image: hUtQ6T]

ı want put image to samw row with button as you see.but i cant do it.can someone help me?
ı m using custo..... More

Print this item

  Using RTC time in Rasberry Pi Programs
Posted by: sab201 - Aug-18-2024, 08:10 AM - Forum: General Coding Help - Replies (1)

Good Day,

I need some advice on this. I am planning to generate pwm with different frequencies from a Rasberry Pi 5. I learnt that the Pi 5 has an ..... More

Print this item

  Confused by the different ways of extracting data in DataFrame
Posted by: leea2024 - Aug-17-2024, 08:20 AM - Forum: General Coding Help - Replies (1)

Suppose we have the following DataFrame recording the results of 5 students.
[python]dic0 = {'Java':[87,65,26,89,67],
'C++':[63,98,66,89,80]..... More

Print this item

Question parallel merge sort algorithm with threads
Posted by: yangg - Aug-17-2024, 08:16 AM - Forum: General Coding Help - Replies (2)

Hello everyone!,
I have an assignment that i need to do and after countless of trails i cant figure it out and would be grateful for help.
Of course..... More

Print this item

  client A to server B connects but client B to server A doesnt connect
Posted by: gerald - Aug-16-2024, 08:51 PM - Forum: General Coding Help - Replies (1)

Hi everyone,

Computer A is connected by cable and computer B is connected by WIFI. When I run a server on computer A I can receive a string message s..... More

Print this item

  deleting files in program files directory
Posted by: RRADC - Aug-16-2024, 05:44 PM - Forum: General Coding Help - Replies (6)

Thanks for reading my post, I'm trying to create script in python that will delete all files in a directory with admin rights for the python script
..... More

Print this item

  [SOLVED] Reportlab - change a single page orientation
Posted by: beetlecad - Aug-16-2024, 01:20 PM - Forum: General Coding Help - Replies (1)

Hi, I'm developing PDF reports with Reportlab and Python.

The first page is A4 landscape
the second and third pages are A4 portrait

Is it possi..... More

Print this item

  VBScript LoadPicture() alternative within Python
Posted by: parun - Aug-16-2024, 11:21 AM - Forum: General Coding Help - No Replies

Hi All,

We are migrating VBScripts to Python scripts.
We hosts ActiveX controls in our applications, and interact with hosted ActiveX controls vi..... More

Print this item

  How to calculate integral value?
Posted by: Tli_You - Aug-16-2024, 08:43 AM - Forum: General Coding Help - Replies (5)

I am getting an IndexError, and not sure why? My goal is to calculate the Following integral.
the mathematical expression in attached file
[python]..... More


Attached Files

.docx   expression.docx (Size: 14.94 KB / Downloads: 126)
Print this item

  Python Installation issue
Posted by: RFHill - Aug-15-2024, 07:12 PM - Forum: News and Discussions - Replies (3)

I updated my Python version yesterday to 3.12.5. I installed it on my Windows 11 notebook and ran the installation as an Administrator.

After the i..... More

Print this item

  Unable to generate animation
Posted by: leea2024 - Aug-15-2024, 09:12 AM - Forum: General Coding Help - Replies (4)

Hi. I was trying to follow the code in a book to generate an animation in Jupyter Lab. However, the system shows 'RuntimeError'. I have already instal..... More

Print this item

  I got "Unclosed connector" when I tried to connect to my ewelink device
Posted by: pepeyomat - Aug-14-2024, 08:27 PM - Forum: Networking - Replies (1)

Hi everybody,

I have a script that works well till two days ago.

This script is used to check a smart wifi switch (SONOFF BASIC device) wich is ..... More

Print this item

  Netgear router automatically using selenium
Posted by: Raysz - Aug-14-2024, 07:14 PM - Forum: General Coding Help - Replies (3)

So I'm trying to log onto my Netgear router automatically using selenium

I was successful in doing so

What I'm trying to add to it is the abilit..... More

Print this item

  Question of Telebot
Posted by: mohsenamiri - Aug-14-2024, 07:03 AM - Forum: General Coding Help - No Replies

Hello,

I've created a Telegram bot (set on webhook) to demonstrate the issue I'd like to address:
The program currently returns the user's action..... More

Print this item

  creating a PDF document
Posted by: Skaperen - Aug-14-2024, 05:22 AM - Forum: News and Discussions - Replies (4)

what tools are best for a Python script to produce its output as a PDF document in latest version format (1.4)?

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Dynamic Module Import Err... 4 hours ago DaddyMAN Larz60+ General Codin...
  Providing clear and promi... 5 hours ago asim18 asim18 Homework
  What Are the Most Overloo... 8 hours ago shreyapatel Plyth News and Disc...
  Setting AST node lineno c... Yesterday, 21:15 voidtrance deanhystad General Codin...
  How do select this table ... Yesterday, 15:52 MarkMan snippsat Web Scraping ...
  [split] Simple webbot for... Yesterday, 13:17 AB073 AB073 Code Review
  Wish to write a code for ... Yesterday, 06:40 Hasan2025 Hasan2025 General Codin...
  I have a question Yesterday, 04:47 Clictithe Pedroski55 General Codin...
  How to produce a CPU load... Yesterday, 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... 572245
  Tutorial Requ... 484747
  Web Scraping ... 436786
  Newbie with P... 379615
  Thread remain... 351213
Most reputation
buran 581
snippsat 506
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+ 12066
buran 8173
snippsat 7336
deanhystad 6838
metulburr 5151
Top referrers
Googlepro 24
python 6
metulburr 6
NonEntity 5
as1221 3
Newest members
GerardRandall Today
mickkn Today
asim18 Today
chandonarani55 Today
kholdeman Yesterday

User Panel Messages

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