Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,422
» Latest member: alexfox
» Forum threads: 38,829
» Forum posts: 176,076

Full Statistics

Online Users
There are currently 34 online users.
» 0 Member(s) | 31 Guest(s)
Bing, Google, Mojeek

Latest Threads
If I open a file write or...
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 4
» Views: 97
a function to watch files
Forum: News and Discussions
Last Post: Skaperen
Yesterday, 05:21 AM
» Replies: 3
» Views: 744
python re.finditer return...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 02:57 AM
» Replies: 8
» Views: 508
Exponential Number Conver...
Forum: General Coding Help
Last Post: DeaD_EyE
Jan-09-2026, 08:47 PM
» Replies: 4
» Views: 452
Possible bug found, pleas...
Forum: General Coding Help
Last Post: alexajames
Jan-08-2026, 04:31 PM
» Replies: 14
» Views: 800
How to put my game loop i...
Forum: Game Development
Last Post: MarkHenry
Jan-08-2026, 12:47 PM
» Replies: 12
» Views: 7,757
Code failing to ask input...
Forum: Homework
Last Post: perfringo
Jan-08-2026, 06:35 AM
» Replies: 4
» Views: 730
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: OtiliaGen
Jan-07-2026, 07:13 AM
» Replies: 6
» Views: 1,032
Data Science
Forum: Data Science
Last Post: OtiliaGen
Jan-04-2026, 10:20 AM
» Replies: 4
» Views: 3,620
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Jan-02-2026, 12:32 PM
» Replies: 29
» Views: 17,378

 
  Looping if condition isnt met
Posted by: finndude - Oct-16-2020, 05:04 PM - Forum: General Coding Help - Replies (6)

[python]
elif time_limit_ask[0] == "r" or time_limit_ask[0] == "R":
def random_questions():
test_1 = input ("enter number ")
..... More

Print this item

  Python ValueError The value of a Series is abmbiguous
Posted by: nhl66pens - Oct-16-2020, 04:40 PM - Forum: General Coding Help - Replies (2)

I have a function that loops through a dataframe and then loops through the Booking Statuses (there are 6 possible) and looks to see if the value of t..... More

Print this item

Lightbulb Help with Tempature Conversion Program
Posted by: booponion - Oct-16-2020, 04:13 PM - Forum: General Coding Help - Replies (3)

I was given an assignment to traslate a program from javascript to Python (I don't know Javascript) and then to add in 2 while statements. I haven't m..... More

Print this item

  How to get my Python SocketServer work parallely?
Posted by: testsid - Oct-16-2020, 02:58 PM - Forum: Networking - No Replies

Hi

I have made a multithreaded Python socket server.

It supports multiple socket client connections. However, it serves the client only synchron..... More

Print this item

  Multi-Indexing in Single Column
Posted by: illmattic - Oct-16-2020, 02:11 PM - Forum: Data Science - Replies (2)

Hello,

I'm trying to create a more visually appealing dataframe and so I want my index to be broken down into categories with different headings.I ..... More

Print this item

  Can't open Amazon page
Posted by: Pavel_47 - Oct-16-2020, 01:13 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello,

Here is simple code that get error:
[python]from urllib.request import urlopen
from bs4 import BeautifulSoup

url = 'https://www.amazon...... More

Print this item

  Sorting list of names using a lambda (PyBite #5)
Posted by: Drone4four - Oct-16-2020, 12:46 PM - Forum: General Coding Help - Replies (2)

Working on CodeChallenges’ PyBite #5, here is the list I am working with:

[python]names = ['arnold schw..... More

Print this item

  capture pytest results to a file
Posted by: maiya - Oct-16-2020, 12:44 PM - Forum: General Coding Help - Replies (2)

Hi,

[python]
my_test.py::test_001_mytest PASSED [ 50%]
my_test.py::test_002_mytest PASSED ..... More

Print this item

  Better Way to Monitor Time Request.
Posted by: bill_z - Oct-16-2020, 12:43 PM - Forum: Code Review - Replies (2)

Being new to Python, but not to programming, I’m concerned with efficiency regarding CPU cycles. My project is to collect data then write it out to a..... More

Print this item

  I Wish....
Posted by: ATARI_LIVE - Oct-16-2020, 12:07 PM - Forum: Bar - No Replies

I wish I have this(picture) for my Atari 800XL 8 bit com..... More

Print this item

  Pylint more Fast
Posted by: leandrogmuller - Oct-16-2020, 11:11 AM - Forum: General Coding Help - Replies (2)

How can I become the PYLINT more fast.
I need to check sources during development, but the pylint expend 8 seconds to check the source.

Print this item

  dataframe groupby with totals for certain fields
Posted by: mikisDeWitte - Oct-16-2020, 10:59 AM - Forum: Data Science - Replies (4)

Hello,

I am frequently required to calculate stuff for a number of dataframe columns, but with totals included.
I know I can ignore a specific dim..... More

Print this item

  Transpose a dataset in pandas
Posted by: simhadriraju - Oct-16-2020, 09:57 AM - Forum: General Coding Help - Replies (1)

I have a pandas dataframe and want to transform

partyID SourceID Text 1 Name 1 Text 2 Name 2
1 1 ramesh kumar jhon pop
1 2 cher..... More

Print this item

  Strange syntax error with f-strings
Posted by: Askic - Oct-16-2020, 08:52 AM - Forum: General Coding Help - Replies (6)

Hello Python experts,

can someone please explain me why this code produces a syntax error:
[code]
favorite_languages = {
'jen': 'python',
'sa..... More

Print this item

Information Asynchronous & synchronous Wrapper for Backblaze's B2
Posted by: WardWeeb - Oct-16-2020, 05:23 AM - Forum: Code sharing - No Replies

Welcome to Backblaze’s unofficial documentation!
This is a unofficial asynchronous & synchronous wrapper for Backblaze’s B2 API.
..... More

Print this item

  str.join()?
Posted by: Skaperen - Oct-16-2020, 12:23 AM - Forum: News and Discussions - Replies (3)

i saw some code that used str.join() for something. is that a normal join?

Print this item

  Mazecraft - A fast paced, maze solving game(with maze editor)
Posted by: Atekka - Oct-16-2020, 12:07 AM - Forum: Code sharing - No Replies

This is the first game I made with Pygame, it was originally supposed to be a snake game but I got sidetracked pretty hard and this is what became of ..... More

Print this item

  What is programming 'based' on?
Posted by: MartyMcFly - Oct-15-2020, 07:38 PM - Forum: News and Discussions - Replies (4)

I've searched book sellers for a book about understanding what programming is based on (theory, how, why it works, etc.). I've recently started a boo..... More

Print this item

  Markov Analysis not working
Posted by: 5Head - Oct-15-2020, 05:25 PM - Forum: Homework - Replies (3)

Write a program to read a text from a file and perform Markov analysis. The result should be
a dictionary that maps from prefixes to a collection of p..... More

Print this item

  rings
Posted by: Skaperen - Oct-15-2020, 03:26 PM - Forum: News and Discussions - Replies (14)

i was thinking about the concept of a new container type. this is not for any particular need i have so i have no need to implement this. the name "..... More

Print this item

  Behavior of Abstract Base Class
Posted by: dgrunwal - Oct-15-2020, 03:12 PM - Forum: General Coding Help - Replies (4)

All,

Is this behavior correct for ABC class? I expected only the method in class S to be printed. Is this the correct behavior?

[python]import..... More

Print this item

  Azure Function App Configuration Settings
Posted by: jdb1234 - Oct-15-2020, 12:03 PM - Forum: Web Scraping & Web Development - Replies (1)

I'm fairly novice with Python, but looking for examples of how to retrieve a value in the configuration settings within an Azure Functions App. This ..... More

Print this item

  Data I/O between two RPI 4B...
Posted by: ATARI_LIVE - Oct-15-2020, 11:50 AM - Forum: Networking - Replies (2)

Administrator, Please remove this post. Thank You.

Print this item

  invalid syntax (BEGINNER)
Posted by: Shishi - Oct-15-2020, 10:49 AM - Forum: General Coding Help - Replies (21)

Hi, im a beginner to python and i was trying to test my knowledge by creating a simple game, it's a quiz game of four questions, each question answere..... More

Print this item

  subprocess call cannot find the file specified
Posted by: RRR - Oct-15-2020, 08:50 AM - Forum: General Coding Help - Replies (6)

Hi,
I am trying to launch a batch file in windows with some arguments from a different directory.
Well its working with

os.system
c..... More

Print this item

  Converting Css To PyQt5 Gradient
Posted by: Harshil - Oct-15-2020, 08:04 AM - Forum: GUI - No Replies

Can SOmeOne Help Me Convert This To PyQt5 Graident
background-color: linear-gradient(175.93deg, #5F00D8 -10.23%, #B200F1 117.03%);
IDK How to conver..... More

Print this item

  Displaying duplicates in dictionary
Posted by: lokesh - Oct-15-2020, 07:43 AM - Forum: General Coding Help - Replies (2)

Hi,

I am trying to below snippet of code but displaying duplicates. Can you please let me know where i did mistake.

[python]
src_base_path="/d..... More

Print this item

  New Theme for all users
Posted by: snippsat - Oct-15-2020, 07:04 AM - Forum: Board - Replies (14)

Roll out our new Responsive Themes for all users.
The Themes we gone for is [url=https:..... More

Print this item

  A question regarding to the microservice architecture
Posted by: itaybardugo - Oct-15-2020, 06:37 AM - Forum: General Coding Help - No Replies

Hello everyone
i have a microservice which exposes a few endpoints, each of these endpoints can be executed by a http request(flask).
I have one sp..... More

Print this item

  Passing argument from top-level function to embedded function
Posted by: JaneTan - Oct-15-2020, 04:15 AM - Forum: General Coding Help - Replies (2)

Hi,
This is a simplified example. But basically, I have function within a function. I want to pass the argument from the top-level function to the em..... More

Print this item

  [Errno 54] Connection reset by peer
Posted by: BlueBlue - Oct-14-2020, 09:32 PM - Forum: General Coding Help - No Replies

Not sure if this is the right place, if not please advise.

I try to get Python3 (3.8.6) up and running on a Mac (Catalina 10.15.6). Here is what I ..... More

Print this item

  parser.parse_args() meaning
Posted by: vinci - Oct-14-2020, 09:09 PM - Forum: General Coding Help - Replies (2)

This is a simple question, but I'm asking it anyway, because I can't figure out the answer by myself:
why do we need the [i]args = parser.parse_args(..... More

Print this item

  adding user to a class
Posted by: Nickd12 - Oct-14-2020, 09:05 PM - Forum: General Coding Help - Replies (3)

once a class is made how to I add contacts to it in the future with input as apposed to manually inputting the code for example lets say I wanted to a..... More

Print this item

  unable to put newline in editor
Posted by: metulburr - Oct-14-2020, 08:58 PM - Forum: Board - Replies (6)

having an issue with not being able to insert a newline (enter) in editor

Print this item

  Why is this happening?
Posted by: taner7 - Oct-14-2020, 08:50 PM - Forum: General Coding Help - Replies (3)

Hi,
Newly learning Python through Linkedin Learning and I got the following result when I make multiplication. Why is this happening, any idea? I have..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  If I open a file write or... 1 hour ago Pedroski55 Pedroski55 General Codin...
  a function to watch files Yesterday, 05:21 Skaperen Skaperen News and Disc...
  python re.finditer return... Yesterday, 02:57 arbiel Pedroski55 General Codin...
  Exponential Number Conver... 01-09, 20:47 Tuurbo46 DeaD_EyE General Codin...
  Possible bug found, pleas... 01-08, 16:31 Hassher alexajames General Codin...
  How to put my game loop i... 01-08, 12:47 temlotresid6 MarkHenry Game Developm...
  Code failing to ask input... 01-08, 06:35 Phoenix_Narukami perfringo Homework
  sorting a lisr of file pa... 01-07, 07:13 Skaperen OtiliaGen News and Disc...
  Data Science 01-04, 10:20 Oshadha OtiliaGen Data Science
  Merge video with subtitle... 01-02, 12:32 Pavel_47 OtiliaGen General Codin...
  Check if running from she... 01-01, 11:52 rjdegraff42 noisefloor General Codin...
Most views
  The best Prog... 580739
  Tutorial Requ... 522261
  Web Scraping ... 442913
  New Users Int... 388136
  Newbie with P... 387135
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12117
buran 8197
snippsat 7399
deanhystad 6921
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
alexfox Yesterday
zalexisshulzeo8879 Yesterday
SUMIATI Yesterday
starboy25 Yesterday
zabenjamitop8877 01-10

User Panel Messages

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