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,418
» Latest member: wayenia
» Forum threads: 38,543
» Forum posts: 174,658

Full Statistics

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

Latest Threads
Intuit QB Line )))))) Wha...
Forum: General Coding Help
Last Post: aliajoseph275
33 minutes ago
» Replies: 0
» Views: 20
where should DEFAULT_CIPH...
Forum: General Coding Help
Last Post: Larz60+
4 hours ago
» Replies: 1
» Views: 108
I am sending messages usi...
Forum: General Coding Help
Last Post: Hendrikb
4 hours ago
» Replies: 0
» Views: 50
Get the string after a sp...
Forum: General Coding Help
Last Post: Gribouillis
6 hours ago
» Replies: 2
» Views: 134
function arguments
Forum: General Coding Help
Last Post: Gribouillis
7 hours ago
» Replies: 1
» Views: 105
[Beautiful Soup] Replace ...
Forum: General Coding Help
Last Post: Winfried
8 hours ago
» Replies: 1
» Views: 148
how to delete thread
Forum: Board
Last Post: DeaD_EyE
Yesterday, 07:30 PM
» Replies: 4
» Views: 274
Atari Ping Pong Game
Forum: Code sharing
Last Post: deanhystad
Yesterday, 05:04 PM
» Replies: 1
» Views: 156
not running
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:08 PM
» Replies: 2
» Views: 252
[split] How to continue c...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:02 PM
» Replies: 1
» Views: 132

 
  Python Linker
Posted by: MeJustMeLol2020 - Feb-15-2025, 12:58 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello everyone,

I'm currently writing a Python script that can read C files from a directory and use GCC to compile them, placing the resulting fil..... More


Attached Files

.py   GCC.py (Size: 1.24 KB / Downloads: 58)
Print this item

  Help me understand variable value
Posted by: rkreis - Feb-15-2025, 11:21 AM - Forum: Homework - Replies (4)

Hello!

I recently stumbled upon a python course and a test of sorts, there is a question:

What is the value of C?

T = 3
v = "ab"
C = T *v

To which..... More

Print this item

  Complex Numbers
Posted by: Curbie - Feb-14-2025, 06:14 PM - Forum: General Coding Help - Replies (4)

My life is settling down again after building two new machines for me, evaluating and loading a new OS distro, and evaluating loading some new applica..... More

Print this item

  how to download large files faster?
Posted by: kucingkembar - Feb-14-2025, 01:50 PM - Forum: General Coding Help - Replies (3)

what method to download large size (larger than 1GB) faster?

Print this item

  Python use of virtual environments
Posted by: bre67e49 - Feb-14-2025, 07:45 AM - Forum: General Coding Help - Replies (4)

I need the ability to use python virtual environments, currently I can create them using python -m venv venv but when I try to import libraries into t..... More

Print this item

  TypeError: string indices must be integers
Posted by: deneme2 - Feb-13-2025, 07:24 PM - Forum: General Coding Help - Replies (2)

Hi guys,

i have two json files
code works fine for test1.json, but it gives "TypeError: string indices must be integers" error for test2.json

..... More


Attached Files

.json   test1.json (Size: 25.68 KB / Downloads: 47)
.json   test2.json (Size: 32.02 KB / Downloads: 54)
Print this item

  [split] ibm_db install problem
Posted by: SQLPython - Feb-13-2025, 07:13 PM - Forum: General Coding Help - Replies (1)

I am on Python 38,

Output:
pip install ibm_db Requirement already satisfied: ibm_db in d:\anaconda\lib\site-packages (3.2.5)
[python]..... More

Print this item

  I'm new to Python - can someone help with this code as it is not working?
Posted by: lminc123 - Feb-13-2025, 05:53 PM - Forum: General Coding Help - Replies (1)

Voice-Controlled Hindi Song Player
------------------------------------------

Here's how the application should work:

Create a directory called..... More

Print this item

  Is one week enough to learn these Python topics? Feeling overwhelmed
Posted by: nedreV - Feb-13-2025, 04:43 PM - Forum: News and Discussions - Replies (1)

Hi everyone,

I'm completely new to programming and currently learning Python. I really enjoy it, but I’m feeling overwhelmed by the amount of mater..... More

Print this item

  ValueError in dataclasses.py - Please help!
Posted by: andrewk - Feb-13-2025, 10:40 AM - Forum: General Coding Help - Replies (4)

Using Python 3.11.2 on Raspberry PI.

Executing deposit.py...get the following error:

File "/blockchain/staking-deposit-cli/./staking_deposit/d..... More

Print this item

  [split] Newbie needs help
Posted by: Schoe1 - Feb-12-2025, 06:57 PM - Forum: General Coding Help - No Replies

I have a similar problem. I am trying to fetch stock data using yfinance and pandas then create a matrix for several stock symbols and associated data..... More

Print this item

  Python Module for PowerLED 2.89.4
Posted by: ChonkyBork - Feb-12-2025, 04:46 PM - Forum: General Coding Help - Replies (3)

Hi

I'm working on trying to create a DIY race timing clock using some P10 single color led panels. I ordered a TF-M6NUR controller board that I was..... More

Print this item

  Deploying a working local piece of code to Google app engine
Posted by: problemfacer - Feb-12-2025, 06:49 AM - Forum: Web Scraping & Web Development - No Replies

My site loads but one can't login. The issue is with database connection. When running on localhost, I had 3 files where this connection took code to ..... More

Print this item

  FFMPEG
Posted by: Leondagreatest - Feb-12-2025, 02:09 AM - Forum: General Coding Help - No Replies

I'm making a program in python that takes an MP4 video, extracts the audio and compresses it, and then takes that compressed audio and takes 0.1 secon..... More

Print this item

  beginner doesn't understand import
Posted by: cimerio - Feb-11-2025, 06:39 PM - Forum: General Coding Help - Replies (3)

hello, I don't know if python is different, but

I have a arquivoDados.py file
and a programa.py file in same directory

In arquivoDados.py I hav..... More

Print this item

  Transform a pdf to markdown
Posted by: zzied - Feb-11-2025, 10:22 AM - Forum: General Coding Help - No Replies

Hello Guys ,

I want to create blogs with markdow for my platform on markdown whit hugo site , but i have only my training on pdf .
How i do to tr..... More

Print this item

  The Secret of Nim
Posted by: ratwolf - Feb-11-2025, 05:40 AM - Forum: Code sharing - No Replies

The game of Nim (The mathematical background of how to win the game)

[python]import numpy as np
import matplotlib.pyplot as plt
from matplotlib...... More


Attached Files

Thumbnail(s)
       
Print this item

  ValueError in dataclasses.py - using staking-deposit-cli
Posted by: andrewk - Feb-10-2025, 09:51 PM - Forum: General Coding Help - No Replies

My project uses https://github.com/ethereum/staking-depo...y_handling

When trying execute it, I get the followin..... More

Print this item

Question Custom Window Decorations on all Windows
Posted by: Beenman11 - Feb-10-2025, 09:00 PM - Forum: General Coding Help - Replies (3)

Hi,
I am making a Helping Script for a game, which uses tkinter for the GUI elements and messagebox for a pop up window.
For this script, there is a..... More


Attached Files

Thumbnail(s)
       

.py   buckshot-helper-test.py (Size: 16.72 KB / Downloads: 55)
Print this item

  Need help with Scikit-Learn Assignment
Posted by: Toh - Feb-10-2025, 07:15 AM - Forum: Homework - Replies (1)

what is wrong with my code why keep failing?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
My failur..... More

Print this item

  What to do with Deadsnakes PPA?
Posted by: andrewk - Feb-09-2025, 04:18 AM - Forum: General Coding Help - Replies (1)

I'm using Python 3.11 which was installed on my Raspberry PI 5 by default.

My project depends on ppa:deadsnakes/ppa...
ie. sudo add-apt-repository..... More

Print this item

Question [SOLVED] [newbie] Why call super()? When to use parent?
Posted by: Winfried - Feb-08-2025, 07:12 PM - Forum: General Coding Help - Replies (4)

Hello,

I'm reading a book on wxPython, and have a couple of newbie questions:

1. Why is a call to super() required? When commented out, Python a..... More

Print this item

  not able to call the variable inside the if/elif function
Posted by: mareeswaran - Feb-08-2025, 04:22 PM - Forum: General Coding Help - Replies (3)

[python]class new_():
def __init__(self):
self.std_=20000


def new1 (self):
if (0<i<=600000):
..... More

Print this item

  opencv troubleshooting when using Canny
Posted by: rickyw2777 - Feb-08-2025, 03:48 AM - Forum: General Coding Help - Replies (2)

I was trying to use a tracebar to change the value of shresholds for Canny. Here is my code:
[code]#HoughLinesP
import cv2
import numpy as np
fi..... More

Print this item

  def __str__(self) gives error
Posted by: rahul6sept - Feb-08-2025, 02:58 AM - Forum: General Coding Help - Replies (1)

Hi, the function def __str__(self) while I put inside the class is giving indent error. But if put outside doesn't give output.

plz advice.


Attached Files

.py   class_py_student.py (Size: 525 bytes / Downloads: 57)
Print this item

  "bytecode compiler" in docs means what?
Posted by: EShaw - Feb-07-2025, 05:19 PM - Forum: News and Discussions - Replies (1)

Hello, first post. I'm a CS instructor and prepping a lecture on compiling v interpreting.

My question is about the use of the term "bytecode comp..... More

Print this item

  question about changing the string value of a list element
Posted by: jacksfrustration - Feb-07-2025, 02:33 PM - Forum: General Coding Help - Replies (4)

so im still building this reminder app. It's got two parts. I need help perfecting it. Basically my app can generate reminders about events/tasks, sav..... More

Print this item

  Python - Hidden Text / Html Mail
Posted by: python1337 - Feb-07-2025, 02:02 PM - Forum: General Coding Help - Replies (1)

I have a Python tool that I want to use to send emails.

I want to send a hidden text within an html mail without the plaintext being displayed - Cu..... More

Print this item

  exception scapy
Posted by: kolikol - Feb-07-2025, 01:57 PM - Forum: Networking - No Replies

Hello, forum!
I have win7 x32 python 3.8.0, the problem is:

When trying to connect the scapy library (full functionality), namely by importing
fr..... More

Print this item

  Python-based telegram spam bot-telegram-bot
Posted by: archer24 - Feb-07-2025, 12:42 PM - Forum: General Coding Help - Replies (1)

Hello, everyone. I'm completely new to Python (I've been writing code for literally 3 days). My task is to write an Antispam Telegram bot based on pyt..... More

Print this item

  Improve Prime Pairs Code
Posted by: jzakiya - Feb-06-2025, 08:51 PM - Forum: General Coding Help - Replies (7)

Hi.

First, I'm not a Python programmer so please escuse my ignorance.

I'm looking for help to improve this code.
It generate prime pairs that s..... More

Print this item

  Hangman Game Buy a Vowel
Posted by: glwilliams82 - Feb-06-2025, 08:53 AM - Forum: Homework - Replies (1)

I created this code for a Hangman game where you can buy a Vowel, but for some reason it keeps subtracting from every letter even if you don't buy a v..... More

Print this item

  asyncio: WebSocketClient:connection closed (ERR): sent 1011
Posted by: Michel777 - Feb-04-2025, 08:43 PM - Forum: General Coding Help - No Replies

Hi,

I'm using Python asyncio, everything is working fine. The only issue is, that the [b](*) writing data from queue into the database: df.to_sql[/..... More

Print this item

  Parallel computation
Posted by: DoveV - Feb-04-2025, 05:59 PM - Forum: General Coding Help - Replies (6)

Hi there,

I'm relatively new to python and I'm trying to perform a 'trivially' parallel computation.
I have some big array of data and I need to p..... More

Print this item

  MPEG DASH Package implementation similar to M3U8 package
Posted by: anantha_narayanan - Feb-04-2025, 02:23 PM - Forum: General Coding Help - No Replies

I'm currently using the following package for working with .m3u8 (HLS) playlist files

m3u8 Package
..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Intuit QB Line )))))) Wha... 33 minutes ago aliajoseph275 aliajoseph275 General Codin...
  where should DEFAULT_CIPH... 4 hours ago Skaperen Larz60+ General Codin...
  I am sending messages usi... 4 hours ago Hendrikb Hendrikb General Codin...
  Get the string after a sp... 6 hours ago JanJan Gribouillis General Codin...
  function arguments 7 hours ago Curbie Gribouillis General Codin...
  [Beautiful Soup] Replace ... 8 hours ago Winfried Winfried General Codin...
  how to delete thread Yesterday, 19:30 Azdaghost DeaD_EyE Board
  Atari Ping Pong Game Yesterday, 17:04 Azdaghost deanhystad Code sharing
  not running Yesterday, 16:08 Azdaghost deanhystad General Codin...
  [split] How to continue c... Yesterday, 16:02 pythonnewbie62 deanhystad General Codin...
  Web Scraping / API Yesterday, 13:40 nautifi deepvyas Jobs
Most views
  The best Prog... 557217
  Tutorial Requ... 423871
  Web Scraping ... 422755
  Newbie with P... 350595
  Thread remain... 324655
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 325
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12034
buran 8165
snippsat 7320
deanhystad 6806
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
wayenia Today
aliajoseph275 Today
davidmartin Today
donjon4500 Today
dadsdsdadsad Today

User Panel Messages

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