Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,393
» Latest member: aurelio12282025
» Forum threads: 38,821
» Forum posts: 176,018

Full Statistics

Online Users
There are currently 31 online users.
» 1 Member(s) | 22 Guest(s)
Apple, Bing, Facebook, Google, Gribouillis

Latest Threads
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 06:21 PM
» Replies: 1
» Views: 80
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Yesterday, 04:06 PM
» Replies: 9
» Views: 238
IP address for users
Forum: Networking
Last Post: itx_sumeet
Yesterday, 05:53 AM
» Replies: 4
» Views: 7,073
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 01:10 AM
» Replies: 5
» Views: 9,899
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 140
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 85
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 153
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,298
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 114
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 757

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

  Upgrading pip behind a firewall
Posted by: tester_V - Mar-21-2023, 09:25 PM - Forum: Networking - Replies (2)

Greetings!
I'm having a problem upgrading pip from behind a firewall.
I usually have no problems installing modules:
[python]
pip --proxy http://p..... More

Print this item

  Python Serial: How to read the complete line to insert to MySQL?
Posted by: sylar - Mar-21-2023, 08:58 PM - Forum: General Coding Help - Replies (1)

Hello. Sorry for my bad English, it's not my first language.
I have created a python code to insert data from a DHT11 sensor into a mysql table. Eve..... More

Print this item

  Sample training small model
Posted by: AndrzejB - Mar-21-2023, 07:43 PM - Forum: Data Science - Replies (3)

I am just starting deep learning. I now have only laptop without dedicated GPU.
I search code and dataset for deep learning model in reasonable time ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to Integrate External... Yesterday, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... Yesterday, 16:06 eedjsa eedjsa General Codin...
  IP address for users Yesterday, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... Yesterday, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
  We open-sourced kubesdk —... 12-21, 11:52 beslanpuzl beslanpuzl Code sharing
Most views
  The best Prog... 580379
  Tutorial Requ... 519175
  Web Scraping ... 442772
  Newbie with P... 386955
  New Users Int... 386300
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aurelio12282025 Today
bejaminmaarleyo1374 Today
taylorlitleoz476 Today
desy845 Today
atalieyandext4063 Yesterday

User Panel Messages

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