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,559
» Latest member: IsmaelSlalk
» Forum threads: 38,665
» Forum posts: 175,210

Full Statistics

Online Users
There are currently 225 online users.
» 1 Member(s) | 218 Guest(s)
Apple, Google, Bing, Baidu, Yandex, Larz60+

Latest Threads
Stephenchers
Forum: General Coding Help
Last Post: IsmaelSlalk
29 minutes ago
» Replies: 0
» Views: 14
Made my first Python prog...
Forum: Game Development
Last Post: Ricky1178
8 hours ago
» Replies: 8
» Views: 10,642
gpiozero buttons stop wor...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 03:49 PM
» Replies: 5
» Views: 248
How to package code for d...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 11:36 AM
» Replies: 2
» Views: 154
pip3 install certifi fail...
Forum: General Coding Help
Last Post: Pedroski55
Jul-15-2025, 08:52 AM
» Replies: 1
» Views: 108
My first python game : Ti...
Forum: Game Development
Last Post: walterliz
Jul-15-2025, 07:45 AM
» Replies: 8
» Views: 55,715
A penny doubled every day...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:35 AM
» Replies: 6
» Views: 751
Exercise on reading a chu...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:31 AM
» Replies: 3
» Views: 1,218
While loop is terminating...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:29 AM
» Replies: 3
» Views: 457
Custom Sorting List of Di...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:28 AM
» Replies: 3
» Views: 246

 
  test error
Posted by: MCL169 - May-29-2023, 08:43 PM - Forum: Homework - No Replies

def get_input_as_int(arg):
try:
result = int(arg)
return result
except ValueError:
raise ValueError("Argument is ..... More

Print this item

  [notice] A new release of pip available: 22.3.1 -> 23.1.2 [notice] To update, run: C:
Posted by: GoldenHarvey - May-29-2023, 07:57 PM - Forum: General Coding Help - Replies (3)

Hello, recent python user and coder. Just started learning one week ago. I recently installed python and pygame. inputted pip install pygame I got the..... More


Attached Files

Thumbnail(s)
   
Print this item

  Plot a pandas data fram via pyqtgraph with an modul import and qt designer widget
Posted by: Nietzsche - May-29-2023, 02:42 PM - Forum: General Coding Help - No Replies

Hello,

i would like to plot a pandas dataframe in a window which i include as a module in my main script and defined via qt designer (include and o..... More

Print this item

  How to compare boxplot bw many data frames?
Posted by: vanphuht91 - May-29-2023, 02:39 PM - Forum: Data Science - Replies (5)

I have many data frame like table below:
what I want is plot box plot of each column & compare line by line.
   
I'm new member, can ..... More


Attached Files

.xlsx   Book1.xlsx (Size: 17.42 KB / Downloads: 1)
Print this item

Video Sensor reading changes with temperature. Looking for a good way to calibrate.
Posted by: Tanjiro - May-29-2023, 07:31 AM - Forum: Data Science - Replies (1)

Newbie here.

I currently have a gas sensor connected to a raspberry pi. The sensor reading, however, is affected by temperature. I'd like to accou..... More

Print this item

  i need help pls
Posted by: augusto_A - May-28-2023, 01:44 PM - Forum: Game Development - Replies (2)

hi, im trying to implement a item colection sistem on my game but i cant understand why is not workin, the items are suposed to disapear wen you touch..... More

Print this item

  Click on googletranslator
Posted by: CH3RNO - May-27-2023, 01:28 PM - Forum: General Coding Help - No Replies

Please I need help.
I need it to run in the background while I'm in full screen playing, for example.
I get the code to call chrome, look for the tran..... More

Print this item

  Match statement
Posted by: Fabrizio_fg - May-27-2023, 09:20 AM - Forum: Game Development - Replies (5)

I' m tryng to use the match statement to manage different event.type but givi me this error:

[output] File "Main.py", line 34
match event.key..... More

Print this item

Question [solved] compressing files with python.
Posted by: SpongeB0B - May-26-2023, 02:54 PM - Forum: General Coding Help - Replies (1)

Hi everyone,

I'm looking for Pytonic readable way to compress files.

I've found https://docs.python.org/3/library/gzip.html

with which I came..... More

Print this item

  remote work
Posted by: MCL169 - May-26-2023, 01:58 PM - Forum: Jobs - Replies (1)

I am changing careers later in life and started back to school. I want to have the freedom to work remotely and stay employable. I'm finishing up my f..... More

Print this item

  Notice about PyPi and your security
Posted by: Larz60+ - May-26-2023, 11:36 AM - Forum: News and Discussions - No Replies

FYI:
Just read this one: PiPi Hands over user data

Print this item

  Openpyxl module breaking my code
Posted by: EnderSM - May-26-2023, 10:44 AM - Forum: General Coding Help - Replies (5)

I was working on a discord bot and wanted to scrape data from an excel spreadsheet so I installed the pandas library and imported it into my file. I w..... More

Print this item

  FTS5 again
Posted by: DPaul - May-26-2023, 07:13 AM - Forum: Bar - No Replies

FTS5 again, and not for the last time. Sad
I have a hard time comparing the various docs we have uncovered,
and making sense of what they try to..... More

Print this item

  Software Engineer - Backend at Rapyuta Robotics
Posted by: djangojobs.net - May-26-2023, 06:09 AM - Forum: Jobs - No Replies

Learn More from
djangojobs.net/jobs/1190/software-engineer-backend-rapyuta-robotics/

Koto City,Tokyo,Japan

Description

Our Tokyo engineering..... More

Print this item

  The way to chase how the set of integer is iterated in mutating loop
Posted by: khei4 - May-26-2023, 05:49 AM - Forum: General Coding Help - Replies (4)

Hi! I'm new to Python source code reading, but I'm curious and I want to chase the following example's execution on CPython source level
[python]
x ..... More

Print this item

  Badly defined python code?
Posted by: Ken76 - May-25-2023, 08:01 PM - Forum: General Coding Help - Replies (2)

I get following error message with my python code.
[i] File "/home/ken/Programming/temp.py", line 20
try:
IndentationError: unexpected indent[/..... More

Print this item

  Simple Question - ' defined as "a". ?'
Posted by: Ryan012 - May-25-2023, 01:37 PM - Forum: General Coding Help - Replies (10)

I have one error for no defined as "a". How can we define "a"? Angel Blush

import a as l

def sum (x, y):
return x + y


..... More


Attached Files

Thumbnail(s)
   
Print this item

  Handshake ( Server Hello )
Posted by: JohnnyCoffee - May-25-2023, 10:38 AM - Forum: Networking - Replies (2)

Do I need to send a ( Server Hello ) as a response to the handshake ( Client Hello ) received, but I couldn’t find out why it doesn’t work? If I can h..... More

Print this item

  getting wrong source IP address using socket and struct
Posted by: billykid999 - May-25-2023, 08:56 AM - Forum: Networking - Replies (1)

I'm sending a ping from a lab environment to my looback on machine. Whether I send the ping sourced from routers in the lab, virtual ips on my pc, oth..... More

Print this item

Question How to annotation type?
Posted by: gamecss - May-25-2023, 03:20 AM - Forum: General Coding Help - Replies (4)

There is a simple function.
[python]
def func(a: AnyStr, *b: AnyStr) -> Tuple[Optional[AnyStr], AnyStr]:
for _b in b:
if a.startswith(_b):
..... More

Print this item

  Application becomes unresponsive as soon as i use the buttons
Posted by: AX_LEARNS - May-25-2023, 01:41 AM - Forum: GUI - Replies (2)

Not sure on why it happens as im still very new to python... Any suggestions or can you guys see any reason of why it might be happening??

[python]..... More

Print this item

  Problem with playing sounds
Posted by: jderickson - May-24-2023, 08:03 PM - Forum: General Coding Help - Replies (5)

Hello,
New poster here. I've been having a problem that I don't know if it is related to Python or to Debian Linux. I have written a very simple scri..... More

Print this item

  Installing From Pip Using -f
Posted by: nyoungarcc - May-24-2023, 06:51 PM - Forum: General Coding Help - Replies (3)

Hello,


I am trying to install a requirements.txt file. This is what it consists of.
[output]
torch~=2.0.0
torchvision==0.10.0+cu102 -f https:/..... More

Print this item

  Minimax algorithm
Posted by: freethrownucleus - May-24-2023, 05:12 PM - Forum: Game Development - Replies (3)

Is there anyway I can make my minimax algorithm stronger? (For a tic-tac-toe game.)

[python]
def minimax(mark, square, alpha=-1000, beta=1000, dep..... More

Print this item

  Sqlite not updating
Posted by: angus1964 - May-24-2023, 04:37 AM - Forum: General Coding Help - Replies (21)

I have a program that records score when practicing darts, then shows them in a high score table.
[python]
def addToDb(self):
name = self.n..... More

Print this item

  Possible to create an object inside another object that is visible outside that objec
Posted by: MeghansUncle2 - May-24-2023, 01:10 AM - Forum: General Coding Help - Replies (17)

I know it sounds confusing so I'll try to illustrate the question

in Main:

self.myobj = myclass


self.myobj(parameters)
..... More

Print this item

  How do I suppress "Cmd exec error."
Posted by: xplet - May-23-2023, 09:49 PM - Forum: Networking - Replies (1)

How do I suppress "Cmd exec error."


[python]
import paramiko

# ...

cli_x = "something unknown"
ssh_client = paramiko.SSHClient()
stdin,..... More

Print this item

  How do i listen to loopback address on my local computer, without a port
Posted by: billykid999 - May-23-2023, 08:30 PM - Forum: Networking - Replies (6)

I want to listent to my loopback address on my windows PC, without attaching it to a port. I want to listent to any messages, or ICMP pings sourced fr..... More

Print this item

  [solved] list of list with one or more empty one
Posted by: paul18fr - May-23-2023, 05:39 PM - Forum: Data Science - Replies (5)

Hi

Without using a loop, is there a way to find an empty list as showing in the following example?

The idea is to find the location and t..... More

Print this item

  What is the fastest way to get all the frames from a video file?
Posted by: glorsh66 - May-23-2023, 03:33 PM - Forum: General Coding Help - Replies (3)

What is the fastest way to get all the frames from a video file?

Print this item

  infinity jump problem
Posted by: augusto_A - May-23-2023, 02:12 PM - Forum: Game Development - Replies (3)

hey hi, i add jump to my game but the charracter can keep jumping infinitely, how do i fix that? heres my code
[python]import pygame, sys

leve..... More

Print this item

  SQLite question
Posted by: DPaul - May-23-2023, 07:04 AM - Forum: General Coding Help - Replies (3)

Hi,
I am using SQLite (version 2.6.0)
Somewhere in the code I need to check if there is an active connection to a database.

In mySQL there is someth..... More

Print this item

  Updating Code And Having Issue With Keys
Posted by: Xileron - May-23-2023, 04:51 AM - Forum: General Coding Help - Replies (8)

Hello, I'm currently updating some code from a plug-in for Maya (the animation software) from Python 2 to Python 3 and noticed I was having some issue..... More

Print this item

  Regex Include and Exclude patterns in Same Expression
Posted by: starzar - May-23-2023, 02:38 AM - Forum: General Coding Help - Replies (2)

How to split sep = "," at only ")," and exclude "%," ?

[python]text = "METAL (3.25%,a/d=13/1),IT(2.31%,a/d=10/0),HEALTHCAREINDEX(1.32%,a/d=13..... More

Print this item

  why globals() exits python when quit() is aliased as q
Posted by: abc12346 - May-23-2023, 01:56 AM - Forum: General Coding Help - Replies (4)

I was trying to set up my python so that typing 'q' or 'quit' (instead of 'quit()') will exit the python interpreter, by doing:
[python]type(quit).__..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Stephenchers 29 minutes ago IsmaelSlalk IsmaelSlalk General Codin...
  [PyGame] Made my first Py... 8 hours ago andrerocha1998 Ricky1178 Game Developm...
  gpiozero buttons stop wor... Yesterday, 15:49 duckredbeard deanhystad General Codin...
  How to package code for d... Yesterday, 11:36 mayukun snippsat General Codin...
  pip3 install certifi fail... 07-15, 08:52 rb9594 Pedroski55 General Codin...
  My first python game : Ti... 07-15, 07:45 ForsakenDusk walterliz Game Developm...
  A penny doubled every day... 07-15, 07:35 esoyboy walterliz Homework
  Exercise on reading a chu... 07-15, 07:31 Nit_Picker walterliz Homework
  While loop is terminating... 07-15, 07:29 jumpsworthnow walterliz Homework
  Custom Sorting List of Di... 07-15, 07:28 aryasinner walterliz Homework
  Unable to define function... 07-15, 07:26 gmonroe walterliz Homework
Most views
  The best Prog... 572722
  Tutorial Requ... 485783
  Web Scraping ... 437175
  Newbie with P... 380142
  Thread remain... 351393
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+ 12072
buran 8174
snippsat 7353
deanhystad 6860
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
IsmaelSlalk Today
Stephenchers Today
chocheng211 Today
comptonden1 Today
Gichardvop Yesterday

User Panel Messages

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