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,419
» Latest member: encore
» Forum threads: 38,543
» Forum posts: 174,667

Full Statistics

Online Users
There are currently 457 online users.
» 0 Member(s) | 450 Guest(s)
Bing, Google, Apple, Baidu, Google Image

Latest Threads
what name to give to a ne...
Forum: News and Discussions
Last Post: Skaperen
1 hour ago
» Replies: 2
» Views: 32
White Screen Issue with T...
Forum: General Coding Help
Last Post: encore
1 hour ago
» Replies: 3
» Views: 1,097
where should DEFAULT_CIPH...
Forum: General Coding Help
Last Post: Gribouillis
2 hours ago
» Replies: 3
» Views: 190
Get the string after a sp...
Forum: General Coding Help
Last Post: snl_9527
3 hours ago
» Replies: 5
» Views: 221
Eight Queens Problem, err...
Forum: General Coding Help
Last Post: snl_9527
6 hours ago
» Replies: 9
» Views: 547
I am sending messages usi...
Forum: General Coding Help
Last Post: Hendrikb
Yesterday, 09:38 AM
» Replies: 0
» Views: 90
function arguments
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:48 AM
» Replies: 1
» Views: 139
[Beautiful Soup] Replace ...
Forum: General Coding Help
Last Post: Winfried
Yesterday, 05:45 AM
» Replies: 1
» Views: 176
how to delete thread
Forum: Board
Last Post: DeaD_EyE
Apr-28-2025, 07:30 PM
» Replies: 4
» Views: 290
Atari Ping Pong Game
Forum: Code sharing
Last Post: deanhystad
Apr-28-2025, 05:04 PM
» Replies: 1
» Views: 164

 
Question [SOLVED] Same input different output
Posted by: antarling - Oct-25-2024, 10:36 PM - Forum: General Coding Help - Replies (2)

What's the reason?
[python]
def f(a, n):
for i in range(n):
a[i][n // 2] = '*'
a[n // 2][i] = '*'
a[i][i] = '*'
a[i][n - i..... More

Print this item

  Appending lists into lists from function is not working for me
Posted by: BoredBannana - Oct-24-2024, 03:37 PM - Forum: General Coding Help - Replies (2)

Hey guys,

I'd like to preface, that I'm a complete beginner - this is actually my first bit of code outside of isolated lesson structures.

So I ..... More

Print this item

  Best Approach for Viewing PDFs in Python Web Applications?
Posted by: Gokul_18 - Oct-24-2024, 12:57 PM - Forum: Web Scraping & Web Development - No Replies

Hi all,
I’m working on a Python-based web application, and I need to implement a feature to display PDF files directly within the browser. I’ve looke..... More

Print this item

  Trying to get JSON object in python and process it further
Posted by: Creepy - Oct-23-2024, 08:29 PM - Forum: General Coding Help - Replies (2)

Hi,

Am trying to extract a specific field in JSON in python and process it further to send output in e-mail. The problem am facing am able to get t..... More

Print this item

  How to correctly update score based on elapsed time?
Posted by: temlotresid6 - Oct-23-2024, 11:53 AM - Forum: Game Development - Replies (8)

I've tried several methods but haven't been able to get it right at all.

Every 5 seconds the score (starting at 0) goes up by 1. Every 30 seconds, th..... More

Print this item

  Flask web app MySQL runtime error
Posted by: TheTiger - Oct-23-2024, 03:49 AM - Forum: Web Scraping & Web Development - Replies (8)

Hello Python Community

I'm following a tutorial about a Flask web app and trying to connect to MySQL to display a data list (SELECT ...) when I get..... More

Print this item

  png-file in Jupyter
Posted by: bunnkvarken - Oct-22-2024, 02:47 PM - Forum: General Coding Help - No Replies

I want to insert a png-file in Jupyter, but I only get this error message even though I have checked that the name of the file is correct. (and yes, t..... More


Attached Files

Thumbnail(s)
   
Print this item

  Applications config files / Best practices
Posted by: aecordoba - Oct-22-2024, 02:17 PM - Forum: General Coding Help - Replies (2)

Hi there!
I' m newbie in Python applications development.
I'm coding an application that has several modules and I'm looking for the best way to acc..... More

Print this item

  Spyder Tutorial
Posted by: Footman - Oct-22-2024, 01:59 PM - Forum: General Coding Help - Replies (1)

Hi, as a native UK speaker, I find the American accent of the tutorial very difficult to follow. Is there a UK English speaker option/version?

Print this item

  Pipe traceback to a C program
Posted by: Alexandros - Oct-22-2024, 12:32 PM - Forum: General Coding Help - No Replies

I'm trying to embed Python in a C program. It works fine if I simply want to execute something simple. Here's the C code:

[python]#define PY_SSIZE_..... More

Print this item

  How can I position a taichi GUI window on screen?
Posted by: Alkis - Oct-22-2024, 09:24 AM - Forum: Homework - Replies (1)

I have started to work with Taichi Lang package and I couldn't find how to position the GUI window.
A simple example:

[python]
import taichi as ..... More

Print this item

  Running search/replace across Polars dataframe columns efficiently
Posted by: hobbycoder - Oct-21-2024, 07:15 PM - Forum: General Coding Help - Replies (3)

I'm looking to learn more about Polars and hope to leverage Polars more aggressively where possible. With this in mind I'd like to work through a ser..... More

Print this item

  Write json data to csv
Posted by: Olive - Oct-21-2024, 11:51 AM - Forum: General Coding Help - Replies (6)

Hi everyone,
I am stuck with my python code. What i'm trying to do is write some informations in a json format, to a csv file.
It's dealing with GPS..... More

Print this item

  Infinity iterators with itertools module
Posted by: maina - Oct-20-2024, 09:04 PM - Forum: Code sharing - No Replies

An infinite iterator is any iterator that can go on yielding values indefinitely. This means that the iterator will never raise the StopIteration exce..... More

Print this item

  find the average data from everyone in the same year
Posted by: STUdevil - Oct-20-2024, 07:16 PM - Forum: General Coding Help - Replies (11)

have some more problems with this code but i thing if i can overcome this one i can find a way to fix the others as well. have a file with country, ye..... More

Print this item

  How to move an object over time rather than instantly?
Posted by: temlotresid6 - Oct-19-2024, 01:31 PM - Forum: General Coding Help - Replies (3)

I'll post more code if needed, but I'm a bit confused. I'm currently using pygame for this.

I use randint() to spawn objects at random intervals, ..... More

Print this item

  Script to check the syntax of Python files
Posted by: Gribouillis - Oct-19-2024, 08:19 AM - Forum: Code sharing - Replies (3)

The following code is a CLI script to check the syntax of python code. Here is the usage string
[output]usage: check_syntax.py [-h] FILENAME [FILENAM..... More

Print this item

  no popin
Posted by: STUdevil - Oct-19-2024, 06:18 AM - Forum: General Coding Help - Replies (3)

i m working on a shopping cart. i post the whole code because maybe i made a mistake on the top that effect my problem.
by option 3 i need to pop an ..... More

Print this item

  CLI to python code
Posted by: azxo1 - Oct-18-2024, 12:13 PM - Forum: General Coding Help - Replies (11)

Hello Everyone!
I would like to ask for your help in converting the following CLI code to python code.
[python]nc -l -u 3000 | ffmpeg -y -f f32le -..... More

Print this item

  Visual Studio 2022 support for python?
Posted by: wardh - Oct-18-2024, 04:35 AM - Forum: GUI - Replies (6)

Hi,

I have installed Microsoft Visual Studio Community 2022 17.11.5

My questions are:

1. Python Version.

My questions are does this suppor..... More

Print this item

  compile only
Posted by: Skaperen - Oct-17-2024, 11:30 PM - Forum: News and Discussions - Replies (4)

i last did this long ago and forgot how to do it. was it a python command option? [u]i want to compile a script without running it to check for any ..... More

Print this item

  webbrowser open multiple sites incognito
Posted by: atsitras - Oct-17-2024, 04:56 PM - Forum: Homework - Replies (4)

The following code opens all the pages in a single browser, in tabs, in one go.
i would like to have it incognito. here is my working code:
[python]..... More

Print this item

  update the colorbar visualsation from the previous to the new one
Posted by: aizu - Oct-17-2024, 01:31 PM - Forum: Data Science - No Replies

hi,

I'm currently trying to create a Python code that visualizes the mandelbrot set and Julia set fractal in subplots where the Julia set will be p..... More

Print this item

  Building a Dota 2 Match Outcome Predictor Using Python
Posted by: masterhood13 - Oct-17-2024, 06:14 AM - Forum: Data Science - Replies (1)

I recently completed a project using Python to build a Dota 2 Match Outcome Predictor. The process involved data collection, feature engineering, and ..... More

Print this item

  default file for print() in with clause
Posted by: Skaperen - Oct-17-2024, 12:16 AM - Forum: News and Discussions - Replies (1)

recently i wrote a block of code like:
[python]
with open(some_file_name,'w') as f:
print('line one',file=f)
print('line two',file=f)
..... More

Print this item

Photo Tkinter GUI Sleep alternative
Posted by: the_muffin_man - Oct-16-2024, 07:20 PM - Forum: GUI - Replies (4)

Hi,

I want to create a memory game. I need the game to pause for a while. I understand that sleep stops the whole program running which is no goo..... More


Attached Files

Thumbnail(s)
   
Print this item

  tkinter and crontab
Posted by: menator01 - Oct-16-2024, 03:15 PM - Forum: Bar - Replies (1)

Just wondering if anyone has gotten a tkinter app to run from crontab?
My goal is to get the Bubble app to run from crontab
I'm using Ubuntu 24.04.1..... More

Print this item

  Code for Crowdstrike
Posted by: snicol - Oct-16-2024, 03:05 PM - Forum: General Coding Help - Replies (3)

Hi

I'm very new to python

I found a python code on github to get information on crowdstrike but it happens that a value is null: “I think it is..... More


Attached Files

Thumbnail(s)
   
Print this item

  Tkinter fading bubble text
Posted by: menator01 - Oct-16-2024, 12:35 PM - Forum: Code sharing - Replies (1)

Was just playing around with popup bubble text. Cant seem to get more than one at a time to popup but, all will popup after the one before fades.
All..... More

Print this item

  [SOLVED] [Linux] Write file and change owner?
Posted by: Winfried - Oct-16-2024, 12:27 PM - Forum: General Coding Help - Replies (6)

Hello,

In a script in Linux, I need to write a text file, and then change its owner. The script will run as a cron job.

The following script doe..... More

Print this item

  python
Posted by: thetmsim - Oct-16-2024, 09:54 AM - Forum: Homework - Replies (1)

Problem Statement: Calculate the Average of Numbers

Write a Python program that:

Asks the user to enter five numbers.
Stores these numbers in a..... More

Print this item

  Web app with DB Crud can't pip install flask-mysqldb
Posted by: TheTiger - Oct-16-2024, 02:47 AM - Forum: Web Scraping & Web Development - Replies (4)

Hello Python Community

I'm following a Tutorial for making a Python web app with a CRUD. It requires to install flask (Ok!) and flask-mysqldb(which..... More

Print this item

  Dice detection using DBSCAN
Posted by: Termiik - Oct-15-2024, 09:50 PM - Forum: General Coding Help - Replies (4)

Hi there,

I'm trying to make dice detection system using a Raspberry with a camera. I want to use the live video feed for this.

Now I'm able to ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Best programming practice for imports
Posted by: Curbie - Oct-15-2024, 05:09 PM - Forum: General Coding Help - Replies (8)

It seems to this newbe, like python programs wants to be built-up from the smallest reusable routines as possible? If that is so, I could end up with ..... More

Print this item

  Art Project including face detection, screenshot and Face TEXTURE MAP
Posted by: ecaillerose - Oct-15-2024, 10:35 AM - Forum: General Coding Help - Replies (1)

Hi !

I'm a art student in France, who do a lot of programmation stuffs ; for one of my project i'm kind of stucked.

I'm doing a code in Python t..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  what name to give to a ne... 1 hour ago Skaperen Skaperen News and Disc...
  White Screen Issue with T... 1 hour ago evelynfreya encore General Codin...
  where should DEFAULT_CIPH... 2 hours ago Skaperen Gribouillis General Codin...
  Get the string after a sp... 3 hours ago JanJan snl_9527 General Codin...
  Eight Queens Problem, err... 6 hours ago snl_9527 snl_9527 General Codin...
  I am sending messages usi... Yesterday, 09:38 Hendrikb Hendrikb General Codin...
  function arguments Yesterday, 06:48 Curbie Gribouillis General Codin...
  [Beautiful Soup] Replace ... Yesterday, 05:45 Winfried Winfried General Codin...
  how to delete thread 04-28, 19:30 Azdaghost DeaD_EyE Board
  Atari Ping Pong Game 04-28, 17:04 Azdaghost deanhystad Code sharing
  not running 04-28, 16:08 Azdaghost deanhystad General Codin...
Most views
  The best Prog... 557355
  Tutorial Requ... 424384
  Web Scraping ... 422891
  Newbie with P... 350954
  Thread remain... 324887
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
encore Today
arturioworker Yesterday
wayenia Yesterday
davidmartin Yesterday
donjon4500 Yesterday

User Panel Messages

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