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,924
» Latest member: Fobertsmene
» Forum threads: 38,719
» Forum posts: 175,490

Full Statistics

Online Users
There are currently 50 online users.
» 0 Member(s) | 44 Guest(s)
Applebot, Bing, Google, AOL, AOL

Latest Threads
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
4 hours ago
» Replies: 2
» Views: 342
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
8 hours ago
» Replies: 7
» Views: 1,628
Python Installation issue
Forum: News and Discussions
Last Post: Dev
8 hours ago
» Replies: 4
» Views: 15,554
New to the field
Forum: News and Discussions
Last Post: Larz60+
11 hours ago
» Replies: 1
» Views: 286
Too much space between gr...
Forum: GUI
Last Post: deanhystad
Today, 02:34 AM
» Replies: 1
» Views: 318
Select Python comment (#)...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 01:34 PM
» Replies: 5
» Views: 623
I'm trying to make a piec...
Forum: General Coding Help
Last Post: MilesWeb
Yesterday, 06:11 AM
» Replies: 5
» Views: 1,404
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Stowersw
Sep-12-2025, 03:23 PM
» Replies: 4
» Views: 2,377
Python and excel vba codi...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-12-2025, 11:09 AM
» Replies: 2
» Views: 1,098
Web Scrapper to find prov...
Forum: General Coding Help
Last Post: Olivia
Sep-12-2025, 08:36 AM
» Replies: 1
» Views: 2,339

 
  Getting KeyError when trying to train my model.
Posted by: alexanderDennisEnviro500 - May-18-2024, 04:29 AM - Forum: Data Science - No Replies

I wrote a code that will fine-tine my QnA model using huggingface. However, things went awry when I ran into problems from this line:

[python]
traine..... More

Print this item

  Adding a pictures from the command prompt
Posted by: ebn852_pan - May-18-2024, 01:03 AM - Forum: GUI - No Replies

Or python programiz. Is there a way to add a picture on my screen. I thought this will look too cool in my programming skills.

import "some file"

..... More

Print this item

  Compare lists
Posted by: w_i_k_i_d - May-17-2024, 09:05 PM - Forum: General Coding Help - Replies (6)

Hello,
I am using colab.research.google.com as an online IDE
The code should keep "72.311.312.90" in ips_logged, remove the rest and update.

[Co..... More

Print this item

  looking for UTF-8 tools
Posted by: Skaperen - May-17-2024, 04:36 AM - Forum: Bar - No Replies

i have a bunch of strange bytes that when produced on a certain website will show some nice graphics and certain characters. when output on my termin..... More

Print this item

  Unexpected output when trying to attach files in a mail application
Posted by: PythonU2Novel - May-17-2024, 02:59 AM - Forum: General Coding Help - No Replies

Dear forum experts:

First of all, excuse my little or no English. Who greets you, I take advantage of my request for help to introduce myself to yo..... More


Attached Files

.py   main.py (Size: 224 bytes / Downloads: 148)
.py   outlook.py (Size: 531 bytes / Downloads: 145)
.py   ui.py (Size: 12.86 KB / Downloads: 183)
Print this item

  why do you use python?
Posted by: xMaxrayx - May-16-2024, 04:47 PM - Forum: Bar - No Replies

mine is for small automated programs and small AI works, what about yours?

Print this item

Question why I can't use "try" without "expect"
Posted by: xMaxrayx - May-16-2024, 03:50 PM - Forum: General Coding Help - Replies (4)

why this rule is enforceable? it makes my code more nested and unpleasant to read

[code]
EnableLoop = 0

try:
EnableLoop = bool(sys.argv[2]..... More

Print this item

  i need someone's opinion
Posted by: wynand - May-16-2024, 11:53 AM - Forum: General Coding Help - Replies (1)

i am busy making my tax calculator global, the following is my code to calculate rebates, i want to use the min function and run a running balance.
i..... More

Print this item

  Python on Linux
Posted by: ebn852_pan - May-16-2024, 07:35 AM - Forum: News and Discussions - Replies (8)

Hopefully someone can help me. I'm on Python now command line. I think

crosh>The only command I know is help. So ..... More

Print this item

  Schedule exit a program at a specific time 4 am every day.
Posted by: chubbychub - May-15-2024, 09:24 PM - Forum: General Coding Help - Replies (3)

I have a script, but it stops responding after 2 weeks or so, so now i am using task manager in windows to start the script every day at 5am. Can some..... More

Print this item

  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: 192)
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: 171)
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: 214)
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 (1)

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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  data input while debuggin... 4 hours ago fred1232 deanhystad General Codin...
  New to Python and Pygame 8 hours ago JMcM JMcM Game Developm...
  Python Installation issue 8 hours ago RFHill Dev News and Disc...
  New to the field 11 hours ago Polybunny Larz60+ News and Disc...
  [Tkinter] Too much space ... Today, 02:34 RonR deanhystad GUI
  Select Python comment (#)... Yesterday, 13:34 SpongeB0B snippsat General Codin...
  I'm trying to make a piec... Yesterday, 06:11 Alislugacool MilesWeb General Codin...
  Seeking feedback: dynamic... 09-12, 15:23 Bona2000 Stowersw General Codin...
  Python and excel vba codi... 09-12, 11:09 odiez DeaD_EyE General Codin...
  Web Scrapper to find prov... 09-12, 08:36 physalis2099 Olivia General Codin...
  403 Error 09-11, 20:39 CaptainNewb snippsat Web Scraping ...
Most views
  The best Prog... 575575
  Tutorial Requ... 496591
  Web Scraping ... 439650
  Newbie with P... 383267
  New Users Int... 364357
Most reputation
buran 581
snippsat 508
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+ 12087
buran 8174
snippsat 7366
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Fobertsmene Today
jeremyn24503 Today
homataheri Today
Dev Today
RonR Yesterday

User Panel Messages

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