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,438
» Latest member: CarmelaAffow
» Forum threads: 38,550
» Forum posts: 174,697

Full Statistics

Online Users
There are currently 449 online users.
» 0 Member(s) | 446 Guest(s)
Bing, Google, Yandex

Latest Threads
Python script not working...
Forum: Web Scraping & Web Development
Last Post: noisefloor
1 hour ago
» Replies: 3
» Views: 157
How to understand object-...
Forum: General Coding Help
Last Post: noisefloor
1 hour ago
» Replies: 3
» Views: 204
Picamera2 commands betwee...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 07:39 PM
» Replies: 1
» Views: 181
PyVisa Query Command fail...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:58 PM
» Replies: 1
» Views: 175
[SOLVED] [Beautiful Soup]...
Forum: General Coding Help
Last Post: Winfried
Yesterday, 03:46 PM
» Replies: 2
» Views: 167
[SOLVED] [Beautiful Soup]...
Forum: General Coding Help
Last Post: Winfried
Yesterday, 03:43 PM
» Replies: 2
» Views: 286
CSV reader with PyQt6
Forum: Code sharing
Last Post: Axel_Erfurt
Yesterday, 11:38 AM
» Replies: 3
» Views: 198
where should DEFAULT_CIPH...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 07:00 AM
» Replies: 8
» Views: 417
what name to give to a ne...
Forum: News and Discussions
Last Post: Skaperen
Apr-30-2025, 09:39 PM
» Replies: 4
» Views: 208
function arguments
Forum: General Coding Help
Last Post: Curbie
Apr-30-2025, 05:23 PM
» Replies: 2
» Views: 242

 
  Help needed - UN voting records
Posted by: Mardy - May-18-2024, 06:13 AM - Forum: General Coding Help - Replies (2)

Hi, I haven't done any programming in 20 years (last did DB2 and Teradata) but an urgent task has emerged and I am not sure how to complete it

Basi..... More

Print this item

  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: 96)
.py   outlook.py (Size: 531 bytes / Downloads: 94)
.py   ui.py (Size: 12.86 KB / Downloads: 126)
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: 133)
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: 120)
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: 157)
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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Python script not working... 1 hour ago texwilson47 noisefloor Web Scraping ...
  How to understand object-... 1 hour ago snl_9527 noisefloor General Codin...
  Picamera2 commands betwee... Yesterday, 19:39 GigiG deanhystad General Codin...
  PyVisa Query Command fail... Yesterday, 16:58 dazz deanhystad General Codin...
  [SOLVED] [Beautiful Soup]... Yesterday, 15:46 Winfried Winfried General Codin...
  [SOLVED] [Beautiful Soup]... Yesterday, 15:43 Winfried Winfried General Codin...
  CSV reader with PyQt6 Yesterday, 11:38 suburbanprojects Axel_Erfurt Code sharing
  where should DEFAULT_CIPH... Yesterday, 07:00 Skaperen snippsat General Codin...
  what name to give to a ne... 04-30, 21:39 Skaperen Skaperen News and Disc...
  function arguments 04-30, 17:23 Curbie Curbie General Codin...
  Eight Queens Problem, err... 04-30, 16:22 snl_9527 Gribouillis General Codin...
Most views
  The best Prog... 557464
  Tutorial Requ... 424481
  Web Scraping ... 422942
  Newbie with P... 351009
  Thread remain... 324902
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 325
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12036
buran 8165
snippsat 7324
deanhystad 6809
metulburr 5151
Top referrers
Googlepro 22
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
CarmelaAffow Today
AlexZolotov Yesterday
ekaintan1590 Yesterday
juanadaniel096 Yesterday
dar Yesterday

User Panel Messages

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