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,402
» Latest member: Jeffreygon
» Forum threads: 38,825
» Forum posts: 176,038

Full Statistics

Online Users
There are currently 43 online users.
» 0 Member(s) | 37 Guest(s)
Applebot, Bing, Facebook, Mojeek

Latest Threads
a function to watch files
Forum: News and Discussions
Last Post: OtiliaGen
Yesterday, 12:38 PM
» Replies: 2
» Views: 198
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Yesterday, 12:32 PM
» Replies: 29
» Views: 15,767
Create dataframe from the...
Forum: Data Science
Last Post: JassicaElla60
Yesterday, 12:31 PM
» Replies: 8
» Views: 3,676
Check if running from she...
Forum: General Coding Help
Last Post: noisefloor
Jan-01-2026, 11:52 AM
» Replies: 2
» Views: 191
Sorry Help
Forum: General Coding Help
Last Post: noisefloor
Jan-01-2026, 11:47 AM
» Replies: 2
» Views: 153
IP address for users
Forum: Networking
Last Post: DeaD_EyE
Dec-31-2025, 08:02 PM
» Replies: 6
» Views: 7,205
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Dec-30-2025, 12:11 AM
» Replies: 1
» Views: 236
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,645
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Dec-29-2025, 08:37 AM
» Replies: 4
» Views: 313
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 274

 
  why the position of the object is different?
Posted by: syafiq14 - Nov-24-2020, 01:51 AM - Forum: Game Development - Replies (1)

I tried changing the object's position with the center of get_rect () and I got a different result without using center and using center

My game sc..... More

Print this item

  Please help me. about self.expect()
Posted by: leeyoung - Nov-23-2020, 10:25 PM - Forum: General Coding Help - No Replies

this 2 line code
====
self.expect('Hit any key to stop autoboot:', timeout=timeout)
self.send("\n")

===================================..... More

Print this item

  Perfect numbers
Posted by: Vidar567 - Nov-23-2020, 09:50 PM - Forum: General Coding Help - Replies (2)

Gentlemans, do you have any suggestions why this code doesn't output proper values?

When I write end = 100 it outputs:
[6, 24, 28]

24 is not a ..... More

Print this item

Heart Urgent homework help needed
Posted by: Medou - Nov-23-2020, 09:46 PM - Forum: Homework - Replies (4)

Dear Python lovers,

I am in urgent need of some assistance. I am stuck with a seemingly simple task, just can't wrap my head around the slicing par..... More

Print this item

  tkinter designer
Posted by: horrorfodrasz - Nov-23-2020, 09:01 PM - Forum: Code sharing - Replies (3)

I made a simple Python Tkinter designer tool.
It is written in Python and you will get pure Python tkinter code. It uses tkinter Grid geometry manag..... More

Print this item

  Animating 2D object movement with matplotlib
Posted by: esamalihalil1993 - Nov-23-2020, 05:22 PM - Forum: Homework - No Replies

Hello there. I'm a super-fresh computer science student and I have been given the following task: I need to create an animation using matplotlib in py..... More

Print this item

  Yield generator weird output
Posted by: Vidar567 - Nov-23-2020, 03:01 PM - Forum: General Coding Help - Replies (8)

Hello,

I would like to create function primes(), but when I return values from the first loop function stops.
Instead of return I try using yield,..... More

Print this item

  Theme and Editor tips
Posted by: snippsat - Nov-23-2020, 02:56 PM - Forum: Board - No Replies

Choose Themes there is Light and Dark, New Theme for all[url=https://python-forum.io/thread-31102.html]..... More

Print this item

  I want to check if the input is str or is int & if it's str repeat the loop
Posted by: HLD202 - Nov-23-2020, 02:16 PM - Forum: General Coding Help - Replies (4)

I want to check if The input is 'str' or it's 'int' and if it's 'str' repeat the loop...
but i don't know how to check if the input was for example: d..... More

Print this item

  saving only one line of a figure as an image (python matplotlib)
Posted by: nitrochloric - Nov-23-2020, 01:41 PM - Forum: General Coding Help - No Replies

hello i have been trying to find a way to save a single line of my plot to save them one-by-one separately in the docs but i wasn't able to find anyth..... More

Print this item

  Quoridor game. Problem: inserting player positions and walls in a checkerboard
Posted by: Roidesflammes - Nov-23-2020, 12:57 PM - Forum: Homework - Replies (1)

Hello !

sorry for my bad English :(

In class we are designing a corridor, here is a link for those interested in the game to explain the rules t..... More

Print this item

  function giving different result with @functool.cache
Posted by: naughtysensei - Nov-23-2020, 12:18 PM - Forum: Homework - Replies (3)

I wrote this code to give first 'n' rows for pascal's triangle:
[python]
def pascal_re(..... More

Print this item

  HELP ME
Posted by: sabe - Nov-23-2020, 10:58 AM - Forum: Homework - Replies (2)

I wrote the code, but each digit with 3 digits could not reflect a different 4 permutation please help.

[python]
def comb(L):

for i ..... More

Print this item

  Problem 5
Posted by: nman52 - Nov-23-2020, 06:08 AM - Forum: Homework - Replies (6)

Hi everyone,

I'm having some issues with problem 5 on this site:
https://courses.cs.washington.edu/course...part1.html

So far, I..... More

Print this item

  Creating 2D Array
Posted by: jpinko - Nov-23-2020, 03:54 AM - Forum: Data Science - Replies (1)

Hi All,

My code is the following:
[python]
import numpy
import math
a = numpy.arange(1, 11)
b = numpy.arange(0, .02, .001)
v = []
for c in a..... More

Print this item

  Disable - Network adapters
Posted by: Maryan - Nov-23-2020, 02:01 AM - Forum: Networking - No Replies

Hi! I want to make a GUI application where I can 'Enable' or 'Disable' network adapters. Any way to bypass 'run as administrator'? or another solution..... More

Print this item

  Code
Posted by: Livi444 - Nov-23-2020, 12:16 AM - Forum: Homework - Replies (3)

def median(numbers):
"""Find the median of the given list of numbers.

How to find the median:
https://www.mathsisfun.com/median.html..... More

Print this item

  multiprocessing
Posted by: venividivici - Nov-22-2020, 09:40 PM - Forum: General Coding Help - No Replies

hi guys,

I'm new 2 python, im glad to see what is possible with Python! Also it is really easy to learn.

ok my question.
I am programming kind of a ..... More

Print this item

  Code question
Posted by: craigesmith - Nov-22-2020, 08:15 PM - Forum: General Coding Help - Replies (1)

Hello,

Is there a better way to write this piece of code? I'm looking for unique entries to append into a list.
[python]
l =[]

if mgr.get_obj..... More

Print this item

  del in for loop not deleting everything
Posted by: noswad - Nov-22-2020, 07:57 PM - Forum: General Coding Help - Replies (8)

My problem is that I want to use del in a for loop to delete everything in a list.

Code:
[python]users = ['a', 'b', 'c', 'd', 'e']

for user in ..... More

Print this item

  Greedy algorithms on logical problems
Posted by: Opensourcehacker - Nov-22-2020, 05:12 PM - Forum: General Coding Help - No Replies

Hello fellow python programmers,

I have the following problem:

I have got k gifts and k people. Every gift is denoted by [1..k] and every person..... More

Print this item

  function in new window (tkinter)
Posted by: Dale22 - Nov-22-2020, 03:14 PM - Forum: GUI - Replies (7)

Hi I'm new to python
I'm trying to create a widget that performs a calculation on clicking a button, only I want the function to open in a new window..... More

Print this item

Star --- Python lists and Linked Lists ---
Posted by: sabe - Nov-22-2020, 01:13 PM - Forum: General Coding Help - Replies (3)

topic was closed thanks.

Print this item

  basic question isinstance
Posted by: tames - Nov-22-2020, 12:44 PM - Forum: General Coding Help - Replies (5)

[python]
def sumtree(l):
tot = 0
for x in l:
if not isinstance(x, list):
tot += x
print(tot)
el..... More

Print this item

  need help
Posted by: Yui_18 - Nov-22-2020, 11:30 AM - Forum: General Coding Help - Replies (27)

I'm new to coding & scripting etc, can someone please tell me how to install this https://pypi.org/project/videocr/
I have installed latest python, t..... More

Print this item

  GEDCOM files
Posted by: DPaul - Nov-22-2020, 07:28 AM - Forum: Bar - Replies (3)

Anybody who has a keen intrest in the subject of genealogy,
uses one of the popular softwares like FTM, Gramps, ...etc.
The problem with these is, t..... More

Print this item

  os.path.join - errors out
Posted by: tester_V - Nov-22-2020, 07:15 AM - Forum: General Coding Help - Replies (4)

Hi,
I'm trying to use 'os.walk' to find all the subdirectories and files in the root dir.
In the first "for" loop, the code generates an error **c..... More

Print this item

Question Request for little help (for tree coding lines)
Posted by: new_one - Nov-21-2020, 11:43 PM - Forum: Homework - Replies (2)

Dear Python programmers,
I am a student of computer science, and am now applying for an online course in data science. In order to do this properly,..... More

Print this item

  Removing element from list
Posted by: squall - Nov-21-2020, 10:18 PM - Forum: General Coding Help - Replies (6)

Hello guys,

I'm new on the forum. The reason I'm here is that I do not know how to fix my problem and hopefully you can help me.
I want to delete ..... More

Print this item

  Self-taught programmers, suggestions please?
Posted by: jrr1990 - Nov-21-2020, 09:29 PM - Forum: News and Discussions - Replies (2)

Hello Everyone,
I'm new to python, and I'm trying to teach myself. I'm looking for some solid resources - BUT I'd rather not start anything from ..... More

Print this item

Music I can't run Scirpt Blender in background - Blender + Python
Posted by: Piter_PL - Nov-21-2020, 02:41 PM - Forum: GUI - No Replies

Hello.
I try create a external graphics user interface, which will do a visualization music (I use Blender as Graphics Engine).

I have problem, be..... More

Print this item

  If, elif, else doesn't work well
Posted by: Vidar567 - Nov-21-2020, 01:20 PM - Forum: General Coding Help - Replies (5)

[python]print("Draw it?")
chart = str(input())

if chart == "Tak" or "tak" or "t":

print("Draw chart)

elif chart == "Nie" or "nie" or "n"..... More

Print this item

  Retrieving Cookies
Posted by: whois1230 - Nov-21-2020, 11:00 AM - Forum: General Coding Help - Replies (2)

Hello, I wrote the following code and ran it:
[python]#!/usr/bin/python3
# Import modules for CGI handling
from os import environ
import cgi, cgit..... More

Print this item

  I seem to have two versions of python 3.7.9 installed
Posted by: miner_tom - Nov-21-2020, 07:54 AM - Forum: General Coding Help - Replies (7)

I am not aware of how this happened but the two versions give different results.

When I invoke python the results are

[quote]Python 3.7.9 (defau..... More

Print this item

  Learning Python with a Caesar cipher
Posted by: Drone4four - Nov-21-2020, 06:57 AM - Forum: General Coding Help - Replies (5)

Hi!

I’m learning about Caesar ciphers. I attempted to write my own from scratch some time ago whi[url=https://python-forum.io/thread-31077.html]..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  a function to watch files Yesterday, 12:38 Skaperen OtiliaGen News and Disc...
  Merge video with subtitle... Yesterday, 12:32 Pavel_47 OtiliaGen General Codin...
  Create dataframe from the... Yesterday, 12:31 Calab JassicaElla60 Data Science
  Check if running from she... 01-01, 11:52 rjdegraff42 noisefloor General Codin...
  Sorry Help 01-01, 11:47 BioNanoTech noisefloor General Codin...
  IP address for users 12-31, 20:02 Robots DeaD_EyE Networking
  Opencv findContours Q 12-30, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... 12-29, 08:37 braillescribe noisefloor General Codin...
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
Most views
  The best Prog... 580517
  Tutorial Requ... 520430
  Web Scraping ... 442821
  Newbie with P... 387039
  New Users Int... 386997
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
Jeffreygon Today
JassicaElla60 Yesterday
bryanptrovz7447 Yesterday
oliviajuior7959 01-01
aoliiapetrov4786 01-01

User Panel Messages

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