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,581
» Latest member: esoyboy
» Forum threads: 38,635
» Forum posts: 175,035

Full Statistics

Online Users
There are currently 347 online users.
» 2 Member(s) | 341 Guest(s)
Bing, Yandex, Google, Baidu, esoyboy, snippsat

Latest Threads
A penny doubled every day...
Forum: General Coding Help
Last Post: esoyboy
10 minutes ago
» Replies: 0
» Views: 16
How do select this table ...
Forum: Web Scraping & Web Development
Last Post: snippsat
1 hour ago
» Replies: 11
» Views: 370
Problème d'exécutable
Forum: General Coding Help
Last Post: Zauf
7 hours ago
» Replies: 0
» Views: 71
PRANK YOUR FRIENDS WITH T...
Forum: Code sharing
Last Post: shailesen
Today, 07:55 AM
» Replies: 3
» Views: 3,976
[split] Simple webbot for...
Forum: Code Review
Last Post: Plyth
Today, 04:55 AM
» Replies: 3
» Views: 109
Dynamic Module Import Err...
Forum: General Coding Help
Last Post: Pedroski55
Today, 12:07 AM
» Replies: 3
» Views: 171
What Are the Most Overloo...
Forum: News and Discussions
Last Post: Plyth
Yesterday, 03:37 AM
» Replies: 2
» Views: 133
Setting AST node lineno c...
Forum: General Coding Help
Last Post: deanhystad
Jun-18-2025, 09:15 PM
» Replies: 4
» Views: 253
Wish to write a code for ...
Forum: General Coding Help
Last Post: Hasan2025
Jun-18-2025, 06:40 AM
» Replies: 4
» Views: 1,002
I have a question
Forum: General Coding Help
Last Post: Pedroski55
Jun-18-2025, 04:47 AM
» Replies: 1
» Views: 117

 
  compare parts of a 2-tuple differently
Posted by: Skaperen - May-18-2024, 08:52 PM - Forum: General Coding Help - No Replies

i have a function that returns a 2-tuple. i have a previous value from that same function i want to compare it with. the previous value is an item f..... More

Print this item

  os.listdir() and follow_symlinks
Posted by: Skaperen - May-18-2024, 05:44 PM - Forum: General Coding Help - Replies (6)

many functions call with a file system path can also choose whether to follow symlinks (usually the default) or not. is there a way to make this choi..... More

Print this item

  problem program runs in a loop
Posted by: jasserin - May-18-2024, 03:07 PM - Forum: General Coding Help - No Replies

I'm a beginner in python. I use a mediapipe lib.

I'm using this program and I get an error that I don't understand, concerning Tensorflow.

here..... More


Attached Files

.json   chemin_source.json (Size: 132 bytes / Downloads: 312)
.json   chemin_traite.json (Size: 131 bytes / Downloads: 332)
.py   test image mesh_contour_losange.py (Size: 7.43 KB / Downloads: 158)
Print this item

  Creating a deselect button
Posted by: dwayne091 - May-18-2024, 07:48 AM - Forum: General Coding Help - Replies (2)

Am trying to create a deselect button to deselect the checkbuttons all at once any ideas on how to do
It?


My code


[python]
from tkinter ..... More

Print this item

  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: 118)
.py   outlook.py (Size: 531 bytes / Downloads: 117)
.py   ui.py (Size: 12.86 KB / Downloads: 147)
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: 154)
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: 145)
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  A penny doubled every day... 10 minutes ago esoyboy esoyboy General Codin...
  How do select this table ... 1 hour ago MarkMan snippsat Web Scraping ...
  Problème d'exécutable 7 hours ago Zauf Zauf General Codin...
  PRANK YOUR FRIENDS WITH T... Today, 07:55 Spyros_dev shailesen Code sharing
  [split] Simple webbot for... Today, 04:55 AB073 Plyth Code Review
  Dynamic Module Import Err... Today, 00:07 DaddyMAN Pedroski55 General Codin...
  What Are the Most Overloo... Yesterday, 03:37 shreyapatel Plyth News and Disc...
  Setting AST node lineno c... 06-18, 21:15 voidtrance deanhystad General Codin...
  Wish to write a code for ... 06-18, 06:40 Hasan2025 Hasan2025 General Codin...
  I have a question 06-18, 04:47 Clictithe Pedroski55 General Codin...
  How to produce a CPU load... 06-18, 02:19 Calab Plyth General Codin...
Most views
  The best Prog... 572272
  Tutorial Requ... 484757
  Web Scraping ... 436813
  Newbie with P... 379633
  Thread remain... 351219
Most reputation
buran 581
snippsat 507
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 450
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12067
buran 8173
snippsat 7339
deanhystad 6838
metulburr 5151
Top referrers
Googlepro 24
python 6
metulburr 6
NonEntity 5
as1221 3
Newest members
esoyboy Today
Zauf Today
rupacodingclave Today
Langlais Today
ethan897 Today

User Panel Messages

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