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,550
» Latest member: WhatsAppDatabasenet
» Forum threads: 38,591
» Forum posts: 174,855

Full Statistics

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

Latest Threads
Error without reason
Forum: General Coding Help
Last Post: deanhystad
1 hour ago
» Replies: 3
» Views: 114
[SOLVED] Open file, and i...
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 1
» Views: 81
Nested Dictionaries, good...
Forum: General Coding Help
Last Post: Curbie
5 hours ago
» Replies: 2
» Views: 215
Enhancement for Python’s ...
Forum: Code sharing
Last Post: 14mhz
Today, 12:30 AM
» Replies: 0
» Views: 189
Error on import: SyntaxEr...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 01:55 PM
» Replies: 10
» Views: 21,696
Picamera2 add text to cam...
Forum: General Coding Help
Last Post: GigiG
Yesterday, 11:46 AM
» Replies: 0
» Views: 113
Functions: why use a vari...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 05:55 AM
» Replies: 3
» Views: 282
PYTHONHOME Variable corre...
Forum: General Coding Help
Last Post: msetzerii
May-25-2025, 11:48 PM
» Replies: 0
» Views: 152
Best way to pass data to ...
Forum: Game Development
Last Post: RogereK
May-25-2025, 06:39 AM
» Replies: 7
» Views: 5,167
Is Python used to make po...
Forum: Game Development
Last Post: RogereK
May-24-2025, 04:17 AM
» Replies: 17
» Views: 31,905

 
  No collision video
Posted by: Gribouillis - May-25-2022, 01:38 PM - Forum: News and Discussions - Replies (1)

I came across this nice youtube video showing non colliding balls moving in a plane. The progra..... More

Print this item

  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: 224)
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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Error without reason 1 hour ago Azdaghost deanhystad General Codin...
  [SOLVED] Open file, and i... 1 hour ago Winfried Pedroski55 General Codin...
  Nested Dictionaries, good... 5 hours ago Curbie Curbie General Codin...
  Enhancement for Python’s ... Today, 00:30 14mhz 14mhz Code sharing
  Error on import: SyntaxEr... Yesterday, 13:55 kirkwilliams2049 deanhystad General Codin...
  Picamera2 add text to cam... Yesterday, 11:46 GigiG GigiG General Codin...
  Functions: why use a vari... Yesterday, 05:55 MMartin71 DeaD_EyE General Codin...
  PYTHONHOME Variable corre... 05-25, 23:48 msetzerii msetzerii General Codin...
  [PyGame] Best way to pass... 05-25, 06:39 Milosz RogereK Game Developm...
  Is Python used to make po... 05-24, 04:17 ironsheep RogereK Game Developm...
  Unequal values when added... 05-24, 00:24 Azdaghost deanhystad General Codin...
Most views
  The best Prog... 569388
  Tutorial Requ... 472767
  Web Scraping ... 434054
  Newbie with P... 374028
  Thread remain... 346021
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12053
buran 8172
snippsat 7328
deanhystad 6831
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
WhatsAppDatabasenet Today
Ismaelswisa Today
RodneyTen Today
Stobi Today
Prekshit Today

User Panel Messages

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