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,934
» Latest member: winchestersam
» Forum threads: 38,722
» Forum posts: 175,504

Full Statistics

Online Users
There are currently 39 online users.
» 0 Member(s) | 33 Guest(s)
AOL, Google, AOL, Applebot

Latest Threads
Recovery of my lost solan...
Forum: General Coding Help
Last Post: winchestersam
7 minutes ago
» Replies: 0
» Views: 1
LOST OF INVESTMENT SCAM
Forum: News and Discussions
Last Post: goodvicent
35 minutes ago
» Replies: 0
» Views: 2
Too much space between gr...
Forum: GUI
Last Post: deanhystad
3 hours ago
» Replies: 3
» Views: 908
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Yesterday, 07:07 AM
» Replies: 1
» Views: 358
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-15-2025, 08:58 PM
» Replies: 8
» Views: 2,496
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,543
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 425
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 133
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 2,926
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,179

 
  PysimpleGUI window update dynamically
Posted by: SamLiu - Mar-27-2023, 01:59 PM - Forum: GUI - Replies (6)

Hi all,
I made a tool checking IQR value in CSV, but I feel so stupid with my code, such as loading text control, and update value.
Can someone help..... More

Print this item

  Read csv file with inconsistent delimiter
Posted by: gracenz - Mar-27-2023, 12:07 PM - Forum: General Coding Help - Replies (2)

Hi everyone.

Can I seek your help on properly reading this csv file with incomplete data (e.g. row 14 to 23) and different delimiters?
row 23 has ..... More


Attached Files

.csv   testing.csv (Size: 5.94 KB / Downloads: 320)
Print this item

  PyQt5 QTableView SQLite : edit cell
Posted by: HeinKurz - Mar-27-2023, 09:45 AM - Forum: GUI - Replies (2)

Hi!
I'm newbie with PyQt5 and now I have an app for Windows with PyQt5 and a SQLite database. Showing the data in QTableView works fine, even with ce..... More

Print this item

  Compiles Python code with no error but giving out no output - what's wrong with it?
Posted by: pythonflea - Mar-27-2023, 04:02 AM - Forum: General Coding Help - Replies (6)

Am running Python 3.8.10 in a 32-bit Windows 7 computer with only 2GB memory and no video card (not even an NVIDIA) - it's a two decade old netbook........ More


Attached Files

Thumbnail(s)
   
Print this item

Question How to compare two parameters in a function that has *args?
Posted by: Milan - Mar-26-2023, 05:03 PM - Forum: General Coding Help - Replies (4)

Hello team,

I have the following function

[python]import string
import random

def check_input(*args):
length = args[0]
while lengt..... More

Print this item

  A simple python doubt
Posted by: mohamedrabeek - Mar-26-2023, 03:23 PM - Forum: General Coding Help - Replies (2)

In the following function,
[python]
def fibonaci():
first = 0
last = 1
while True:
first, last = last, first + last
..... More

Print this item

  error python audio
Posted by: codiac - Mar-26-2023, 10:01 AM - Forum: General Coding Help - Replies (3)

this is my code:
[python]import os
import pyaudio
import openai
import soundfile as sf
import numpy as np
import base64
from pydub import Audio..... More


Attached Files

.py   ai hog inc.py (Size: 2.49 KB / Downloads: 315)
Print this item

  find out ore python is good for me ?
Posted by: trix - Mar-26-2023, 09:07 AM - Forum: News and Discussions - Replies (2)

hello,

i am busy whit a big project. that i programmed in C. it is working for 70 % now.
first i used a 8-bit AVR but i stopped whit th..... More

Print this item

  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd2 in position 16: invalid cont
Posted by: Melcu54 - Mar-26-2023, 07:41 AM - Forum: General Coding Help - Replies (3)

Hello. I have a lots of ANSI docx files. I made this Python code, and I got an error of codec:

[python]import re
import os
from pathlib import Pa..... More

Print this item

  Drawing a net of a cube
Posted by: freethrownucleus - Mar-25-2023, 02:14 PM - Forum: Game Development - Replies (27)

I need to draw a net of a cube. Each of squares of a cube will present a tic-tac-toe board.
I tried this but I can do nothing with it (making anything..... More

Print this item

  havent programmed in years - confused by why RETURN is not returning
Posted by: stmoose - Mar-25-2023, 05:35 AM - Forum: General Coding Help - Replies (5)

haven't programmed in years
thought i would try python, wrote a script that was failing
shorten the code to just the section that I think is giving ..... More

Print this item

  How to express null value
Posted by: klatlap - Mar-25-2023, 03:43 AM - Forum: General Coding Help - Replies (3)

Hi, problem i have is i am downloading a json file and putting in a string, when i am getting data from the string at times there is some info that is..... More

Print this item

  conditions not working as expected
Posted by: mbrown009 - Mar-25-2023, 03:23 AM - Forum: Data Science - Replies (13)

I am pulling/wanting to pull in data from a pandas data frame to a straight variable so I can do pull it into a function so I do not duplicate code. W..... More

Print this item

  exe to .py
Posted by: KinkgOfKeks - Mar-24-2023, 08:16 PM - Forum: General Coding Help - Replies (2)

I have somehow deleted my python file without noticing it. It also isn't in the trasch bin. Al that I have left is a onefile .exe that I have created ..... More

Print this item

  can openpyxl read font colors
Posted by: mperemsky - Mar-24-2023, 04:50 PM - Forum: General Coding Help - Replies (3)

I have a task to remove duplicate entries from a column in a spreadsheet. I can loop through the spreadsheet using

[python] for i in range(..... More

Print this item

  highlight the columns and capture
Posted by: amy83 - Mar-24-2023, 03:59 PM - Forum: General Coding Help - No Replies

Hi Experts,
I have written a Python script (3.8) which is going to capture Oracle SQL query from .log file ( as per report .log files are going to ge..... More

Print this item

  Removing leading whitespaces
Posted by: palladium - Mar-24-2023, 12:56 PM - Forum: General Coding Help - Replies (1)

Hi all

I am trying to build a simple (semi) live dictation script with Whisper. As Whisper do not support commands out of the box (eg 'new paragrap..... More

Print this item

  Replace string in a nested Dictianory.
Posted by: SpongeB0B - Mar-24-2023, 10:42 AM - Forum: General Coding Help - Replies (2)

Hi everyone,

I've got a huge nested dict from a yaml call
[python]
with open('MyYamlFile.yml', 'r') as file:
yml_test = yaml.safe_load(file)
[..... More

Print this item

  zfill prints extra et the end of a var
Posted by: tester_V - Mar-24-2023, 01:59 AM - Forum: General Coding Help - Replies (4)

Greetings to you all!
I'm trying to replace single digits at the beginning of each string in a files
The integers are always in the range of 1-12.
..... More

Print this item

  Loop through json file and reset values [SOLVED]
Posted by: AlphaInc - Mar-23-2023, 07:54 PM - Forum: General Coding Help - Replies (2)

Hello everybody,

I have a json file which stores information for different people, which looks like this:
[python]{
"person":
[
..... More

Print this item

  why did python run in this case?
Posted by: Skaperen - Mar-23-2023, 05:50 PM - Forum: News and Discussions - Replies (2)

i was trying to run a big command in a bash shell in a non-root user under Xubuntu 20.04 involving a bash loop, system binary commands, and one binary..... More

Print this item

  .py pandas matplotlib .xlsx files
Posted by: QubeStory - Mar-23-2023, 08:16 AM - Forum: General Coding Help - Replies (1)

I am facing a problem with my Python script and I hope someone can help me with it.

I have a list of file names, such as f1, f2, f3, etc. These files..... More

Print this item

  How do I write all csv records to Excel ?
Posted by: Revox - Mar-23-2023, 04:25 AM - Forum: General Coding Help - Replies (2)

Dear Pro !!
Can you Help me please with this issue ?

I wrote the following code to copy all csv to exist excel file
but It C..... More

Print this item

  New zealand Trivia Quiz
Posted by: SEWII - Mar-23-2023, 01:41 AM - Forum: Homework - Replies (7)

Can someone make or help with creating a NZ Trivia Quiz Using only one for loop, lists, While True loop and no use of functions.

Create a New Zeala..... More

Print this item

  comparing zero leading number with a number
Posted by: tester_V - Mar-22-2023, 10:15 PM - Forum: General Coding Help - Replies (6)

Greetings!
I'm comparing 1 with 01 or 2 with 02 and the snippet errors out.
I'm puzzled why.

d = 1
dd = 01
print(d==dd)
Thank..... More

Print this item

  tkinter help please
Posted by: juliolop - Mar-22-2023, 07:45 PM - Forum: GUI - Replies (11)

hi guys!
why this code doesn't work as I want ?
I've tried several ways but it does the same,
it shows the scrolled bar widget at the end of the ..... More

Print this item

  Dictionary
Posted by: freethrownucleus - Mar-22-2023, 05:24 PM - Forum: General Coding Help - Replies (3)

How can I get just numbers as int or float type from this dictionary named brand?

brand: {'BMW': 1983, 'Audi': 1986, 'Opel': 1992}

Print this item

Smile help me to sokve this problem
Posted by: alexsendlegames100 - Mar-22-2023, 04:35 PM - Forum: GUI - Replies (1)

[python]

import tkinter as tk
from tkinter import ttk
from tkinter import messagebox

# Import necessary modules for animations
import time
f..... More

Print this item

  Delete all Excel named ranges (local and global scope)
Posted by: pfdjhfuys - Mar-22-2023, 04:12 PM - Forum: General Coding Help - Replies (2)

Hi,

I have an Excel Workbook. I am using the openpyxl package. I don't know how many worksheets I have nor do I know the named ranges.

My goal..... More

Print this item

Question __init__ of Child Class
Posted by: zero_fX0 - Mar-22-2023, 02:40 PM - Forum: General Coding Help - Replies (4)

Hello all,
Base is parent and Child inherited .
Should argument(s) in the __init__of the child class be same as what we have in the ..... More

Print this item

  create exe file for linux?
Posted by: korenron - Mar-22-2023, 01:23 PM - Forum: General Coding Help - Replies (2)

Hello,
is there any way to create kind of exe file for my python code ?

in Windows I use

pyinstaller --onefile test.py
and I ..... More

Print this item

  Greek letters with .readline() and tkinter
Posted by: KinkgOfKeks - Mar-22-2023, 06:42 AM - Forum: General Coding Help - Replies (7)

I am currenty working on a projekt with tkinter(Python 3.11.2), for wich I have to use the greek alphabet. The Problem is, that if I try to write gre..... More

Print this item

  Serial Port As Global
Posted by: Prasanjith - Mar-22-2023, 02:59 AM - Forum: General Coding Help - Replies (2)

How do I define the selected port as global so I can call it anywhere in my code.

In below code I have selecting the serial port inside a function...... More

Print this item

  extracting x from '(x)' as an integer number
Posted by: Hwolff1962 - Mar-22-2023, 02:42 AM - Forum: General Coding Help - Replies (3)

I have a file and I figured out how to extract and strip the line per line data I need from it but...I end up with the numbers representing individual..... More

Print this item

  Create new folders and copy files
Posted by: cocobolli - Mar-21-2023, 10:29 PM - Forum: General Coding Help - Replies (3)

My task: I have a folder containing many folders named after projects. These project folders have various amounts/levels of subfolders. I want to crea..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Recovery of my lost solan... 7 minutes ago winchestersam winchestersam General Codin...
  LOST OF INVESTMENT SCAM 35 minutes ago goodvicent goodvicent News and Disc...
  [Tkinter] Too much space ... 3 hours ago RonR deanhystad GUI
  Another app idea - intera... Yesterday, 07:07 decuser Lenowell News and Disc...
  403 Error 09-15, 20:58 CaptainNewb snippsat Web Scraping ...
  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...
Most views
  The best Prog... 575833
  Tutorial Requ... 497142
  Web Scraping ... 439839
  Newbie with P... 383547
  New Users Int... 365499
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+ 12087
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
winchestersam Today
goodvicent Today
XenonBlack Yesterday
tobey12 Yesterday
Lenowell Yesterday

User Panel Messages

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