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,577
» Latest member: museofgreed
» Forum threads: 38,669
» Forum posts: 175,233

Full Statistics

Online Users
There are currently 233 online users.
» 0 Member(s) | 226 Guest(s)
Applebot, Bing, Google, Baidu, Yandex, Mojeek

Latest Threads
veri kazıma
Forum: Web Scraping & Web Development
Last Post: Pedroski55
6 hours ago
» Replies: 8
» Views: 170
Post Body (for "Forum Usa...
Forum: Board
Last Post: hihi
Yesterday, 06:17 AM
» Replies: 0
» Views: 41
None collapsing Tuple at ...
Forum: Code Review
Last Post: hihi
Yesterday, 05:21 AM
» Replies: 0
» Views: 73
Label & OptionMenu widget...
Forum: GUI
Last Post: slate
Yesterday, 02:21 AM
» Replies: 2
» Views: 130
Code stoped working
Forum: News and Discussions
Last Post: DeaD_EyE
Jul-19-2025, 10:55 AM
» Replies: 2
» Views: 142
ASCII-Codec in Python3 [S...
Forum: General Coding Help
Last Post: Gribouillis
Jul-19-2025, 08:53 AM
» Replies: 6
» Views: 10,508
How scan all ips from mai...
Forum: Networking
Last Post: MaahirThomas
Jul-18-2025, 07:09 PM
» Replies: 2
» Views: 414
gpiozero buttons stop wor...
Forum: General Coding Help
Last Post: deanhystad
Jul-18-2025, 03:10 PM
» Replies: 7
» Views: 450
Made my first Python prog...
Forum: Game Development
Last Post: Ricky1178
Jul-17-2025, 11:12 PM
» Replies: 8
» Views: 10,746
How to package code for d...
Forum: General Coding Help
Last Post: snippsat
Jul-17-2025, 11:36 AM
» Replies: 2
» Views: 241

 
  max_minus_min_abs
Posted by: whatdoyoumeanitwontpassthru - Sep-17-2023, 08:07 PM - Forum: Homework - Replies (3)

I have to come up with a code for max_minus_min_abs but I am confused on where to enter the numbers I am passing through. This is what I am using

..... More

Print this item

Question Special Characters read-write
Posted by: Prisonfeed - Sep-17-2023, 08:07 PM - Forum: General Coding Help - Replies (1)

I have a directory filled with .gz text archives. To scan these archives, I use the following python code:

[python]
with gzip.open(logDir+"\\"..... More

Print this item

  for loops break when I call the list I'm looping through
Posted by: Radical - Sep-17-2023, 04:40 PM - Forum: General Coding Help - Replies (4)

I was trying out the for loops in Python, and I don't fully understand why it breaks.

When I type:

[python]
for i in catNames:
print(catNames[i]..... More

Print this item

Question Common understanding of output processing with conditional statement
Posted by: neail - Sep-17-2023, 06:24 AM - Forum: General Coding Help - Replies (6)

Hello,

Can anyone please explain why the output calls the Evaluation statement before printing the series?

And what is the process to print the ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Installation
Posted by: tultalk - Sep-16-2023, 10:20 PM - Forum: General Coding Help - Replies (1)

Not sure where to post!!

Error msg:

Message:
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve..... More

Print this item

  Help creating shell scrip for python file
Posted by: marciokoko - Sep-16-2023, 04:18 PM - Forum: General Coding Help - Replies (10)

Hi guys,

So Im reading through this git (https://github.com/cubapp/RasPi-EnviropH...ree/master) and the author writes:

[quote]I call..... More

Print this item

  Yet another unique identifier generator
Posted by: Gribouillis - Sep-16-2023, 08:14 AM - Forum: Code sharing - Replies (3)

This small module generates unique ever 11 letters identifiers by converting the number of nanoseconds since 1970 to a string. I know there are many w..... More

Print this item

  Trying to get counts/sum/percentages from pandas similar to pivot table
Posted by: cubangt - Sep-15-2023, 02:41 PM - Forum: General Coding Help - Replies (6)

I am restructuring this question as i have moved away from trying the JSON file since we dont have a server to host this page, and more trouble than i..... More

Print this item

  Unchangeable variables in a class?
Posted by: Calab - Sep-15-2023, 02:27 PM - Forum: General Coding Help - Replies (12)

I want a class that will accept a value, and provide some other values based on calculations from the original value. I do not want these calculated v..... More

Print this item

  Making tetrominos
Posted by: ragoo - Sep-15-2023, 10:34 AM - Forum: Game Development - Replies (11)

Hi. I don't think this is really a game development problem, it's more of a design problem best I can tell.

I've written a base Tetromino class that ..... More

Print this item

  QTreeView, StyleSheet resizes last column
Posted by: malonn - Sep-15-2023, 09:44 AM - Forum: GUI - Replies (2)

I am using a QTreeView with a StyleSheet set to it. This tree has checkboxes, and the style replaces the image for the empty, checke..... More

Print this item

  Pythonic from a C++ perspective
Posted by: PyDan - Sep-15-2023, 12:45 AM - Forum: General Coding Help - Replies (2)

In C++, entSel would look like

int acedEntSel(const ACHAR * str, ads_name entres, ads_point ptres );

where entres and ptres are out parameters, th..... More

Print this item

  Class member become static
Posted by: Quasar999 - Sep-14-2023, 10:17 PM - Forum: General Coding Help - Replies (1)

In the following code data must be an non static attribute of the class Node:

[python]class Node:
total = 0
def __init__(self,parent,data):
..... More

Print this item

  C++ programmer confused about why Python isn't working the way I intend
Posted by: Radical - Sep-14-2023, 04:53 PM - Forum: General Coding Help - Replies (2)

So I just started learning Python a few days ago and have written a very simple block of code, but it doesn't do what I think it would. Can you please..... More

Print this item

Music Help with: Audiobook Library/Copier Project
Posted by: eleven43 - Sep-14-2023, 04:17 PM - Forum: General Coding Help - No Replies

Hello pythons!

Truth: Its my first little coding project. Nothing fancy, just for private use. I went through hours and hours of trial and error wi..... More

Print this item

  more pdf questions
Posted by: DPaul - Sep-14-2023, 08:54 AM - Forum: Bar - No Replies

Hi,
in my efforts to save server space, I have a "how to" problem.
Using Fitz (pyMuPdf), I can : open a pdf and find the page I need (page_nr)
[pyt..... More

Print this item

  How to import in photos
Posted by: CoderX - Sep-14-2023, 03:25 AM - Forum: Homework - Replies (2)

I have a project coming up in my Physics class where we are currently learning the fundamentals of Python. We have learned nested statements, how to s..... More

Print this item

  dataframe logic issues
Posted by: mbrown009 - Sep-13-2023, 07:44 PM - Forum: Data Science - Replies (5)

It is setting all values for box4 to the combination of the two values so of the else. What am I doing wrong? Do I have to convert those fields to num..... More

Print this item

  Jupyter notebooks, jupyter kernels, virtual environment created in Anaconda...
Posted by: bytecrunch - Sep-13-2023, 12:35 PM - Forum: Data Science - Replies (8)

Hello Forum,

I think I am clear on what a virtual environment is: it is a "folder" that contains specific Python libraries/modules and a specific P..... More

Print this item

  UserWarning: Could not infer format
Posted by: NewBiee - Sep-13-2023, 07:40 AM - Forum: Data Science - Replies (3)

Hi,

I have this code:
[python]def get_rework_flags(logs, clean_df):
""" Gets the flags used for rework """
logger = logs['logger']
..... More

Print this item

  Anyone registered for PyWeek?
Posted by: ah3 - Sep-12-2023, 12:02 PM - Forum: Game Development - Replies (1)

Did anyone register for PyWeek? I just did, I'm excited and kinda nervous. It's my first ever game jam!

Print this item

  ValueError: Unknown label type: 'continuous-multioutput'
Posted by: hobbyist - Sep-12-2023, 09:07 AM - Forum: General Coding Help - Replies (7)

I am running this code: https://github.com/dyt08/diabetes-predic...etes.ipynb on google colab.

and on this part:

[python]X_SMOTE, y_..... More

Print this item

  pdf question
Posted by: DPaul - Sep-12-2023, 08:46 AM - Forum: Bar - Replies (7)

Hi,
When documents are scanned, using a "bulk" scanner,
the result is either a bunch of tifs or pngs.
Those image formats are percieved as being "f..... More

Print this item

  Pytest Installed, but VS Code Won’t Access Pytest
Posted by: AstralWeeks - Sep-12-2023, 05:15 AM - Forum: General Coding Help - Replies (9)

Hi,

Sorry, I understand questions about installing packages and problems with path directories are common, but I've tried everything and really nee..... More

Print this item

  Program to find Mode of a list
Posted by: PythonBoy - Sep-11-2023, 01:57 PM - Forum: General Coding Help - Replies (6)

I am currently making a program to find the Mode of a list by count() function.

[python]
Input =input("Please enter the data: ")
Data = Input.spl..... More

Print this item

  Problem passing argument to functionin inTkinter frame
Posted by: ericwm7248 - Sep-11-2023, 12:09 PM - Forum: GUI - Replies (3)

This is the method I have inside a Tkinter frame which I am trying to call using key_press() but get the error.


ERROR MESSAGE
[error]Traceback (..... More

Print this item

  read active document name - other than from the window title
Posted by: ineuw - Sep-11-2023, 09:06 AM - Forum: General Coding Help - No Replies

This simple date time & filename script is activated from Autokey and works well, except where I need it most - in Geany. In a GTK based theme, regard..... More

Print this item

  Python code for Longest Common Subsequence
Posted by: Bolt - Sep-11-2023, 12:14 AM - Forum: General Coding Help - Replies (3)

I am looking for a Python code to find the longest common subsequence of two strings. I found a blog post that describes the problem and provides a so..... More

Print this item

  run a string or str as a statement
Posted by: Skaperen - Sep-10-2023, 10:13 PM - Forum: News and Discussions - Replies (3)

i would like to be able to run a string (or at least just a str) as a statement in the current context (for example, its local variables being the sam..... More

Print this item

  android e python fece recognition
Posted by: Fabiola - Sep-10-2023, 05:30 PM - Forum: General Coding Help - Replies (1)

Hi, I'm making an app in Android Studio that communicates with Python via socket and I have to implement the recognition. I did it this way but when I..... More

Print this item

  Extract PDF Attachment from Gmail
Posted by: jstaffon - Sep-10-2023, 01:55 PM - Forum: General Coding Help - No Replies

I would like to have a python script open my Gmail inbox, read each unread email, extract the PDF attachments if they exist and save the attachment. M..... More

Print this item

  Error is finding mean of a list
Posted by: PythonBoy - Sep-10-2023, 07:26 AM - Forum: General Coding Help - Replies (4)

So I was making a program to find the mean of a list entered by the user
My code:
[python]
Input =input("Please enter the data: ")
Data = Input.sp..... More

Print this item

  Trouble with Tkinter labels
Posted by: Raysz - Sep-09-2023, 11:18 PM - Forum: GUI - Replies (6)

So I am new at Tkinter

So I'm trying to create what I thought was a simple program
I made this program in a standard Python script
I thought all ..... More

Print this item

  Taking screenshot
Posted by: ConsistentlyInconsistent - Sep-09-2023, 10:32 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi,

I'm very very new to python but I've been building my own automated bot for a html game.
There's part of the game that you need to complete an..... More

Print this item

  Using pyodbc&pandas to load a Table data to df
Posted by: tester_V - Sep-09-2023, 05:12 AM - Forum: General Coding Help - Replies (3)

Greetings!
I'm connecting to a DB and can get all the tables from it. No errors
I wanted to find a table named "ToolHistory" and later some other ta..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  veri kazıma 6 hours ago fehmikonkur Pedroski55 Web Scraping ...
  Post Body (for "Forum Usa... Yesterday, 06:17 hihi hihi Board
  None collapsing Tuple at ... Yesterday, 05:21 hihi hihi Code Review
  [Tkinter] Label & OptionM... Yesterday, 02:21 slate slate GUI
  Code stoped working 07-19, 10:55 OldMan57 DeaD_EyE News and Disc...
  ASCII-Codec in Python3 [S... 07-19, 08:53 AlphaInc Gribouillis General Codin...
  How scan all ips from mai... 07-18, 19:09 ramin_malek MaahirThomas Networking
  gpiozero buttons stop wor... 07-18, 15:10 duckredbeard deanhystad General Codin...
  [PyGame] Made my first Py... 07-17, 23:12 andrerocha1998 Ricky1178 Game Developm...
  How to package code for d... 07-17, 11:36 mayukun snippsat General Codin...
  pip3 install certifi fail... 07-15, 08:52 rb9594 Pedroski55 General Codin...
Most views
  The best Prog... 572782
  Tutorial Requ... 485861
  Web Scraping ... 437239
  Newbie with P... 380258
  Thread remain... 351436
Most reputation
buran 581
snippsat 507
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+ 12073
buran 8177
snippsat 7353
deanhystad 6862
metulburr 5152
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
museofgreed Today
antonymonk936 Yesterday
IslaTaylor39 Yesterday
terenceltl Yesterday
Florence123 Yesterday

User Panel Messages

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