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,544
» Latest member: tonypatrick8390
» Forum threads: 38,665
» Forum posts: 175,206

Full Statistics

Online Users
There are currently 62 online users.
» 0 Member(s) | 58 Guest(s)
Bing, Google, Yandex, Baidu

Latest Threads
gpiozero buttons stop wor...
Forum: General Coding Help
Last Post: duckredbeard
Yesterday, 05:35 PM
» Replies: 2
» Views: 93
How to package code for d...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:26 PM
» Replies: 1
» Views: 69
pip3 install certifi fail...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 08:52 AM
» Replies: 1
» Views: 65
My first python game : Ti...
Forum: Game Development
Last Post: walterliz
Yesterday, 07:45 AM
» Replies: 8
» Views: 55,303
A penny doubled every day...
Forum: Homework
Last Post: walterliz
Yesterday, 07:35 AM
» Replies: 6
» Views: 700
Exercise on reading a chu...
Forum: Homework
Last Post: walterliz
Yesterday, 07:31 AM
» Replies: 3
» Views: 1,196
While loop is terminating...
Forum: Homework
Last Post: walterliz
Yesterday, 07:29 AM
» Replies: 3
» Views: 428
Custom Sorting List of Di...
Forum: Homework
Last Post: walterliz
Yesterday, 07:28 AM
» Replies: 3
» Views: 199
Unable to define function...
Forum: Homework
Last Post: walterliz
Yesterday, 07:26 AM
» Replies: 2
» Views: 67
RemoTe server operation w...
Forum: General Coding Help
Last Post: snippsat
Jul-14-2025, 10:14 AM
» Replies: 6
» Views: 684

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

  Networking Issues - Python GUI client and server connection always freezes
Posted by: Veritas_Vos_Liberabit24 - Mar-21-2023, 03:18 AM - Forum: General Coding Help - No Replies

So my python program is essentially an investment interface where the client displays the graphical elements like the first page is the login or signu..... More


Attached Files

.py   Client.py (Size: 13 KB / Downloads: 221)
.py   Server.py (Size: 5.61 KB / Downloads: 226)
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  gpiozero buttons stop wor... Yesterday, 17:35 duckredbeard duckredbeard General Codin...
  How to package code for d... Yesterday, 13:26 mayukun noisefloor General Codin...
  pip3 install certifi fail... Yesterday, 08:52 rb9594 Pedroski55 General Codin...
  My first python game : Ti... Yesterday, 07:45 ForsakenDusk walterliz Game Developm...
  A penny doubled every day... Yesterday, 07:35 esoyboy walterliz Homework
  Exercise on reading a chu... Yesterday, 07:31 Nit_Picker walterliz Homework
  While loop is terminating... Yesterday, 07:29 jumpsworthnow walterliz Homework
  Custom Sorting List of Di... Yesterday, 07:28 aryasinner walterliz Homework
  Unable to define function... Yesterday, 07:26 gmonroe walterliz Homework
  RemoTe server operation w... 07-14, 10:14 mario17 snippsat General Codin...
  Qt Event Filtering 07-14, 09:36 deanhystad deanhystad GUI
Most views
  The best Prog... 572692
  Tutorial Requ... 485739
  Web Scraping ... 437150
  Newbie with P... 380105
  Thread remain... 351377
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 8174
snippsat 7352
deanhystad 6858
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
tonypatrick8390 Today
Aidenaka Today
laszlotiszlavicz57 Today
winstoncarol7 Yesterday
melissareed Yesterday

User Panel Messages

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