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,247
» Latest member: Kacper
» Forum threads: 38,779
» Forum posts: 175,813

Full Statistics

Online Users
There are currently 52 online users.
» 0 Member(s) | 43 Guest(s)
Bing, Google, Mojeek, Facebook, Apple

Latest Threads
New to python and coding
Forum: Homework
Last Post: Larz60+
Today, 10:18 AM
» Replies: 1
» Views: 55
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Today, 09:52 AM
» Replies: 11
» Views: 266
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Today, 09:41 AM
» Replies: 3
» Views: 108
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Today, 05:07 AM
» Replies: 5
» Views: 236
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:37 AM
» Replies: 1
» Views: 92
Data Science
Forum: Data Science
Last Post: mamta25
Yesterday, 05:27 AM
» Replies: 3
» Views: 2,602
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 190
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 174
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,918
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,410

 
  Reading Baseball Box Scores
Posted by: tommythumb - May-15-2024, 04:57 PM - Forum: Homework - Replies (3)

Here is a sample of 100 baseball box scores. These are automatically generated
by another app. There may be hundreds of these box scores chained toge..... More


Attached Files

.txt   x1.txt (Size: 174.89 KB / Downloads: 206)
Print this item

  Can Python...
Posted by: greghains - May-15-2024, 07:48 AM - Forum: Bar - Replies (3)

Hi.

Whilst I have dabbled in Python on and off over the years, I am no guru. I am, however, a FileMaker Developer with many years experience. Whi..... More

Print this item

  [pyparsing] How to make my simple parser fault tolerant
Posted by: medihack - May-14-2024, 04:52 PM - Forum: General Coding Help - No Replies

I wrote the below code to parse a Google-like query string with the help of the great pyparsing library. The code examples also show which expressions..... More

Print this item

  Cannot get cmd to print Python file
Posted by: Schauster - May-14-2024, 04:51 PM - Forum: General Coding Help - Replies (11)

I have recently decided to learn python and found a playlist by Corey Schafer. The problem is that with the very first task, I cannot get it to work. ..... More

Print this item

  Cann't get locale data from IDLE on macOS
Posted by: roomONmoon - May-14-2024, 02:50 PM - Forum: General Coding Help - Replies (7)

When trying to execute code from IDLE, I can't get the system locale data on macOS

[python]import os
ret = os.popen('locale')
ret.read().split()..... More

Print this item

  Extracting content from a website using Python?
Posted by: SandraYokum - May-14-2024, 02:24 PM - Forum: Web Scraping & Web Development - Replies (4)

I'm currently working with Python 3.1.

I've noticed the community here is quite supportive, and I'm hopeful you can assist me. I'm attempting to fetc..... More

Print this item

  Regex to find triple characters
Posted by: bfallert - May-14-2024, 12:28 AM - Forum: General Coding Help - Replies (14)

I am looking for a regex pattern to find the instance of 3 matching characters in series in a string. The characters can be letters or numbers, but ca..... More

Print this item

Music Python Script Repeating Number When Saving Facebook Photos
Posted by: ThuanyPK - May-13-2024, 06:34 PM - Forum: General Coding Help - Replies (2)

Good afternoon.
I'm having an issue with my code where every time the fifth photo is being saved, it's named as number 4, causing a problem with savi..... More


Attached Files

Thumbnail(s)
   
Print this item

  Help!!!! Error in Code
Posted by: Ravi1001 - May-13-2024, 12:33 PM - Forum: General Coding Help - Replies (3)

Hi,

I am working on a calculator.

I somehow completed it, but i am getting an error.
Unable to figure out.

Help!

Thanks!

[python]
# Add
def add (..... More

Print this item

  Modifying a dictionary recursively
Posted by: SpongeB0B - May-12-2024, 03:38 PM - Forum: General Coding Help - Replies (2)

Hi everyone,

I have a "nested" dictionary that can contain either dict, or list, tuple, string (and all that nested or not)

I create a recursiv..... More

Print this item

  Parsing "aTimeLogger" Android app data to graphs using pandas
Posted by: Drone4four - May-12-2024, 09:15 AM - Forum: Data Science - Replies (8)

Greetings Pythonistas!

I’ve got a data set in CSV format which spans from July 2019 up to December 2023. It is a collection of productivity interva..... More


Attached Files

Thumbnail(s)
       

.csv   all-comments-removed.csv (Size: 144.36 KB / Downloads: 4)
Print this item

  [SOLVED] [listbox] Feed it with dict passed to class?
Posted by: Winfried - May-12-2024, 08:50 AM - Forum: General Coding Help - Replies (3)

Hello,

This is a newbie question.

Is it possible to feed a listbox with a dictionary (to get text + hidden value) passed through the class as in..... More

Print this item

  Understanding subprocess.Popen
Posted by: Pedroski55 - May-12-2024, 07:30 AM - Forum: General Coding Help - Replies (6)

The code I use is from here, Part 5

Just playing around with generators, I have a Python s..... More

Print this item

  [split] Class and methods
Posted by: ebn852_pan - May-12-2024, 02:25 AM - Forum: General Coding Help - Replies (15)

This is my first post. I'm new to Python programming. I usually go on Windows, Linux, C#, and Java programming on coding. I wanted to take up Pytho..... More

Print this item

  Class and methods
Posted by: Saida2024 - May-12-2024, 02:09 AM - Forum: General Coding Help - Replies (2)

I have this code but it doesn't seem to work.

[python]class textanalysis(object):

Class Analysis(object):
def _init_(self, text):
..... More

Print this item

  short version of os.listdir()
Posted by: Skaperen - May-12-2024, 12:22 AM - Forum: General Coding Help - Replies (12)

is there a way to shorten os.listdir() such as to have it only read several (like maybe 32 to 256) names at a time? i need to scan through a massivel..... More

Print this item

  program wanted for Posix
Posted by: Skaperen - May-11-2024, 11:54 PM - Forum: Bar - Replies (4)

maybe you know the "head" command. maybe you know the "tail" command. i'd like to see someone create a "headtail" command that outputs the head of a..... More

Print this item

  gnome-terminal
Posted by: Raysz - May-10-2024, 04:40 PM - Forum: General Coding Help - Replies (5)

So I'm trying to execute a simple command here it does run but I come up with errors

[python]
os.system("gnome-terminal -e 'sudo apt update'")
[/..... More

Print this item

  Loops and Child Attributes
Posted by: antweeman82 - May-10-2024, 03:48 PM - Forum: General Coding Help - Replies (7)

Hi,

I'm a bit of a novice with Python in terms of creating scripts (I tend to edit / read-only) and am really struggling to understand how to use l..... More

Print this item

  Writing a cycle to find the nearest point from the array
Posted by: Tysrusko - May-10-2024, 11:49 AM - Forum: General Coding Help - No Replies

[python]current_time = datetime.datetime.now().time()
class Graph(object):
def __init__(self, nodes, init_graph):
self.nodes = nodes
..... More


Attached Files

.zip   переделка под словарь.zip (Size: 5.7 KB / Downloads: 193)
Print this item

  Aspiring systems administrator wants a python book.
Posted by: oslon - May-10-2024, 10:37 AM - Forum: News and Discussions - Replies (1)

I know programming basics like if else for loops and how they work. What I lack is ability to practice. Sort of exercises that I can follow that can t..... More

Print this item

  Trying to generating multiple json files using python script
Posted by: dzgn989 - May-10-2024, 05:27 AM - Forum: General Coding Help - Replies (4)

Hi everyone. This is my first post here.

I am zero in python. I am trying to create script by myself and I thought chatgpt would help but I fail..... More


Attached Files

.zip   FOR FORUMS.zip (Size: 25.85 KB / Downloads: 237)
Print this item

  which way would be better?
Posted by: Skaperen - May-10-2024, 12:26 AM - Forum: General Coding Help - Replies (3)

which way would be better (WWWBB)?

1.[python]
from stat import S_ISREG,S_ISDIR,S_ISLNK,S_ISBLK,S_ISCHR
from stat import S_ISFIFO,S_ISSOCK,S_ISPOR..... More

Print this item

  Adaptive experimental design in python
Posted by: Shilbottle - May-09-2024, 02:03 PM - Forum: Data Science - Replies (2)

Background
I'm looking to implement a discrete choice experiment where participant(s) are presented with pairs of 'product profiles' and asked..... More

Print this item

  Extending list doesn't work as expected
Posted by: mmhmjanssen - May-09-2024, 01:36 PM - Forum: General Coding Help - Replies (2)

Adding a list using the += operator or the extend function gives strange results when used in a class (maybe also outslde a class, I didn't check this..... More

Print this item

  pyinstaller + win32print
Posted by: Wild_Tigra - May-09-2024, 12:50 PM - Forum: General Coding Help - Replies (1)

Hello everyone, I’ll say right away that I’m new to programming, I mainly use GPT chat. The essence of the problem is that there is code in Python, an..... More

Print this item

  What's the meaning of dtype=mesh.Mesh.dtype?
Posted by: FerdiFuchs - May-09-2024, 05:31 AM - Forum: General Coding Help - Replies (2)

Hi there,

I'm trying to create STL files using python code and found the following sample:

[python]from stl import mesh
import math
import num..... More

Print this item

  Use or raw string on regular expressions
Posted by: Zaya_pool - May-09-2024, 04:08 AM - Forum: General Coding Help - Replies (5)

I am studying regular expressions in an introduction course and I don't completely understand the use of raw strings. I will ilustrate my question wit..... More

Print this item

  Value Error when Trying to Plot Filtered Waveforms
Posted by: mkohler - May-09-2024, 12:40 AM - Forum: General Coding Help - Replies (1)

Howdy yall. I am trying to apply a highpass filter to my waveform from a specific earthquake but I cant seem to understand the error that I get when i..... More

Print this item

  Class and Object HW for cars - Help with error handling for user inputs
Posted by: jakeshugart - May-08-2024, 07:55 PM - Forum: Homework - Replies (2)

Hi All,

I have this HW problem that deals with classes and objects and I think i did the assignment correctly from the instructions. However, I w..... More


Attached Files

.pdf   class Car HW problem.pdf (Size: 77.8 KB / Downloads: 281)
.py   car_object_error_handling.py (Size: 1.38 KB / Downloads: 197)
.py   Car.py (Size: 1.19 KB / Downloads: 210)
Print this item

  Please make a script
Posted by: Centsicles - May-08-2024, 04:22 PM - Forum: Bar - Replies (10)

jesus christ,i've looked everywhere,im shadow banned on reddit for whatever reason? Anyway i need to terminate a task called nf.exe that starts itself..... More

Print this item

  Regular expression help
Posted by: anilrajr - May-08-2024, 07:51 AM - Forum: General Coding Help - Replies (4)

Hello All,

Need your help to understand what below python regular expression code does. It's from a Ansible playbook.

[b]- { regex: '((?:hares|h..... More

Print this item

  get a game to run in full screen mode
Posted by: agencyclearly - May-08-2024, 07:22 AM - Forum: Game Development - Replies (1)

Hello, I need some assistance with some coding and I'm attempting to get a game to run in full screen mode. However, it's now small and in the center ..... More

Print this item

  Integrating Python Debugging with Visual Studio Code in a Custom Application
Posted by: bill787 - May-08-2024, 03:59 AM - Forum: Networking - Replies (1)

I’ve integrated Python directly into my application, running it within the same process by loading Python’s relevant libraries. I’m looking to debug P..... More

Print this item

  strange result in xor
Posted by: zapad - May-07-2024, 04:08 PM - Forum: General Coding Help - Replies (6)

hello
i am trying to implement an xor test on 2 values
in binary . I receive in return a strange numeric string instead
of the binary I expect ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding Today, 10:18 lary_p Larz60+ Homework
  [Tkinter] I’m building a ... Today, 09:52 tsgiannis tsgiannis GUI
  Help with Serial.write in... Today, 09:41 racingsubby Larz60+ General Codin...
  Backward compatibility qu... Today, 05:07 yutaozhou Gribouillis News and Disc...
  [split] print two differe... Yesterday, 05:37 Reema Gribouillis General Codin...
  Data Science Yesterday, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
Most views
  The best Prog... 578805
  Tutorial Requ... 509764
  Web Scraping ... 441908
  Newbie with P... 385899
  New Users Int... 375918
Most reputation
buran 581
snippsat 510
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+ 12105
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Kacper Today
isla123456 Today
vibrometro Today
thebigback Yesterday
dimitriwati Yesterday

User Panel Messages

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