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,933
» Latest member: Shadab
» Forum threads: 38,721
» Forum posts: 175,508

Full Statistics

Online Users
There are currently 55 online users.
» 1 Member(s) | 48 Guest(s)
Apple, AOL, Bing, AOL, deanhystad

Latest Threads
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
47 minutes ago
» Replies: 9
» Views: 2,650
Too much space between gr...
Forum: GUI
Last Post: RonR
7 hours ago
» Replies: 4
» Views: 1,077
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
8 hours ago
» Replies: 3
» Views: 95
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Yesterday, 07:07 AM
» Replies: 1
» Views: 463
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,635
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 557
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 175
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 3,071
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,303
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 975

 
  Clean Up Script
Posted by: rotw121 - May-25-2022, 09:45 AM - Forum: General Coding Help - Replies (2)

Hi Everyone, I am new to Python and jumping into automating certain processes. Learning so much.

One of the scripts I am working on is figuring out..... More

Print this item

  Code review of my rock paper scissors game
Posted by: Milan - May-25-2022, 06:59 AM - Forum: Code Review - Replies (2)

Hello team,

I would like to submit my rock paper scissors game for code review. Any suggestion on how to improve it is more than welcome.

[pytho..... More

Print this item

  Trying to parse only 3 key values from json file
Posted by: cubangt - May-24-2022, 09:04 PM - Forum: General Coding Help - Replies (8)

So im playing around with parsing a json file in python.
Im able to read in the file and print it to the console, but now i want to extract 3 values ..... More

Print this item

  PyCon 2022
Posted by: snippsat - May-24-2022, 07:48 PM - Forum: News and Discussions - No Replies

[Image: 1*mXCpIzzJNFuGZyJGf4qnSw.png]
Her is the ..... More

Print this item

  Coding and IDE
Posted by: prodrumernate - May-24-2022, 07:10 PM - Forum: General Coding Help - Replies (5)

i learn better by writing and doing than just reading.im using sololearn to learn python.i couldnt even write the code for a simple calculator..so i t..... More

Print this item

  FFT - sum of amplitudes
Posted by: frohr - May-24-2022, 05:34 PM - Forum: General Coding Help - No Replies

Hi,
I have 30k samples and I make FFT.
Size of amplitudes in FFT is ok.
But I want make sum of all amplitudes and here I can see wrong number. F..... More

Print this item

Question how to solve `'TypeError: 'int' object is not iterable`?
Posted by: netanelst - May-24-2022, 11:02 AM - Forum: General Coding Help - Replies (2)

[python]
def CSVR():


x52=[""]
x166=[""]
if request.method == 'POST':
f = request.files['file']
l8=range(48,58)
..... More

Print this item

  Python converted EXE not working
Posted by: Rajasekaran - May-24-2022, 10:06 AM - Forum: General Coding Help - Replies (1)

I have created a tool for OCR the content from the TIFF images and its working fine when executing from the source code.
However when executing the s..... More


Attached Files

.py   OCR.py (Size: 765 bytes / Downloads: 257)
Print this item

  using variables with functions imported from different files.
Posted by: Scordomaniac - May-24-2022, 09:29 AM - Forum: General Coding Help - Replies (3)

hey, I'm trying to run a function from a different file in my main file. this isn't working as the function won't load variables across files, how can..... More

Print this item

  Help with TypeWriter Effect in Python Rich
Posted by: Extra - May-23-2022, 09:43 PM - Forum: General Coding Help - No Replies

Hello,

I'm trying to have the text look like it's being typed live on the screen using the typewriter effect. I got it to print to the terminal the w..... More

Print this item

  Detecting float or int in a string
Posted by: Clunk_Head - May-23-2022, 08:39 PM - Forum: General Coding Help - Replies (15)

The str.isnumeric() function is lacking when it comes to detecting floats.
Several sites say to use a try/except to attempt the conversion. I was tau..... More

Print this item

  Python newbie
Posted by: laleebee - May-23-2022, 07:26 PM - Forum: General Coding Help - Replies (2)

Hi all.
A little bit about me: 20 years ago, I worked in house for an investment bank. Despite not having a coding background I ended up using Per..... More

Print this item

  signal anti-aliasing
Posted by: frohr - May-23-2022, 05:18 PM - Forum: General Coding Help - No Replies

Hi,
I am reading signal from ADXL1005 with ADS1256 24bit ADC to Teens4.0.
I have sample rate 30000 and I read 30000 samples.
I have no problem with..... More

Print this item

  Help adding prompt text in a Layout using Rich TUI
Posted by: Extra - May-23-2022, 04:16 PM - Forum: General Coding Help - Replies (2)

Hello,

I'm trying to put my Login Screen inside a Panel or Layout using Rich (Rich Link)[url=https://python-forum.io/thread-37285.html]..... More

Print this item

  [Solved]Make certain columns Un-editable in QtSql
Posted by: Extra - May-23-2022, 03:06 PM - Forum: GUI - Replies (7)

Hello again,

I'm trying to figure out how to make my SellPrice, ID, Quantity, & Date columns Un-editable/read-only when you click on their columns ..... More

Print this item

  Multiple Loop Statements in a Variable
Posted by: Dexty - May-23-2022, 08:36 AM - Forum: General Coding Help - Replies (1)

I'm quite familiar with:

for i in range(n):
	for j in range(n):
		print(i, j)
and
[python]
myVar = [i for i in range(n)]..... More

Print this item

  strategy to troubleshoot what pyinstaller misses
Posted by: hammer - May-23-2022, 01:05 AM - Forum: General Coding Help - No Replies

On linux machine, have an app that incorporates kivy and runs from command line fine. After creating a .spec file and adding some needed datas, trying..... More

Print this item

  Metaprogramming: automating conversions between types
Posted by: Gribouillis - May-22-2022, 09:41 PM - Forum: Code sharing - No Replies

I tend to use more and more unary conversions between types in my programming, so here is a small utility module that I wrote today for composing auto..... More

Print this item

  Get the attributes value with xPath
Posted by: vulturas - May-22-2022, 05:28 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello everyone,

I would like to get the value from the data-score attribute within the <span>-element.
[inline]<span class="index..... More

Print this item

  math.log versus math.log10
Posted by: stevendaprano - May-22-2022, 11:44 AM - Forum: General Coding Help - Replies (10)

math.log(num, 10) is usually, but not always, equal to math.log10(num). In my random testing, when they are differen..... More

Print this item

  How to compile a Python script for a Windows / Linux executable?
Posted by: netanelst - May-22-2022, 10:11 AM - Forum: General Coding Help - Replies (2)

TNX Smile
NATE

Print this item

  Loop row and column + 1
Posted by: Scott - May-22-2022, 07:34 AM - Forum: General Coding Help - Replies (3)

Hi everyone,

I've made an empty 24,31 (24 columns and 31 rows if I've done the numbers wrong) matrix with all 0. I've also created a loop that a mo..... More

Print this item

  is there any tool to convert negative base to int?
Posted by: Skaperen - May-21-2022, 10:48 PM - Forum: General Coding Help - Replies (7)

is there any tool to convert negative base to int?

Print this item

  only print the last folder ?
Posted by: User3000 - May-21-2022, 09:01 PM - Forum: General Coding Help - Replies (4)

hi, I know I can get the name of the last folder using os.path.basename and os.path.normpath.

src_1 = "/storage/emulated/0/Documents/TAX/December_..... More

Print this item

  [Solved]Multiply a number to a DoubleSpinBox
Posted by: Extra - May-21-2022, 08:09 PM - Forum: GUI - Replies (11)

Hello,

I'm trying to make a sellPrice variable that takes in the user's input from the Price Input that I have and multiplies 1.10 to it.

This ..... More

Print this item

  [CPython] Can't run script python
Posted by: VietVH - May-21-2022, 03:32 PM - Forum: General Coding Help - Replies (2)

Hi all,

I have a problem need your help.
Thanks in advance.

1. Context:
I customized source code CPython 3.9.6 (https://www.python.org/downloa..... More

Print this item

  Convert nested sample json api data into csv in python
Posted by: shantanu97 - May-20-2022, 10:47 PM - Forum: General Coding Help - Replies (3)

Want to convert Sample JSON data into CSV file using python. I am retrieving JSON data from API. As my JSON has nested objects, so it normally cannot ..... More

Print this item

  rotating image with Tkinter
Posted by: Frankduc - May-20-2022, 05:37 PM - Forum: General Coding Help - Replies (6)

Hi,

I am trying to rotate images on canvas using Tkinter after() method.

My images dont appear in the window and they dont seem to rotate. I get..... More

Print this item

  Best way to accommodate unknown number of variables?
Posted by: Mark17 - May-20-2022, 05:23 PM - Forum: General Coding Help - Replies (9)

Hi all,

I've run up against this issue a number of times so I thought I'd seek advice on the best way to handle it.

Suppose I have a large data ..... More

Print this item

  Should Python support i suffix for complex numbers as well as j ?
Posted by: stevendaprano - May-20-2022, 10:19 AM - Forum: News and Discussions - Replies (3)

Python supports complex numbers written with the j suffix, e.g. 2.5j.

On Python's bug tracker, ..... More

Print this item

  Kiosk app
Posted by: DPaul - May-20-2022, 06:01 AM - Forum: Bar - No Replies

Hi,
When animals could talk, 'kiosk applications' were also in vogue.
If I have a tKinter app, running on windows 10/11.
What are the best python t..... More

Print this item

  Aligning a image to a template image
Posted by: robrod26 - May-20-2022, 02:02 AM - Forum: Data Science - Replies (1)

I've been researching how to do this with no luck.

I would like to align image 1 to image 2.

Image 1
https://ibb.co/wCsjYZR

Image 2
https:/..... More

Print this item

  auth - URL
Posted by: SUN - May-19-2022, 02:23 PM - Forum: General Coding Help - Replies (2)

Hello everyone sorry to disturb you. I wanna to ask a question about the authentification with an URL. How to judge whether a group of id and password..... More


Attached Files

Thumbnail(s)
       
Print this item

  Converting cells in excel to JSON format
Posted by: desmondtay - May-19-2022, 10:10 AM - Forum: General Coding Help - Replies (4)

Hi,

I am new to Python, need some help from the experts. I need to convert certain cells in 2 worksheets in excel to JSON format. How can i do it u..... More

Print this item

  do you have an idea to optimize this code[recursion]]?
Posted by: netanelst - May-19-2022, 08:37 AM - Forum: General Coding Help - Replies (4)

[python]class y():


def __init__(self, id, d="", indicator="",type="",deleted=False,published_date=0,last_updated=0,reports=[],actors=[],..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  403 Error 47 minutes ago CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... 7 hours ago RonR RonR GUI
  datetime in SQL query. 8 hours ago Dibbley Dibbley General Codin...
  Another app idea - intera... Yesterday, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
  New to Python and Pygame 09-14, 11:25 JMcM JMcM Game Developm...
Most views
  The best Prog... 575913
  Tutorial Requ... 497291
  Web Scraping ... 439897
  Newbie with P... 383627
  New Users Int... 365938
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+ 12088
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
Shadab Today
Dibbley Today
XenonBlack Yesterday
Lenowell Yesterday
luisshulez6883 09-15

User Panel Messages

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