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,266
» Latest member: tlandr02
» Forum threads: 38,788
» Forum posts: 175,853

Full Statistics

Online Users
There are currently 33 online users.
» 0 Member(s) | 30 Guest(s)
Bing, Google, AOL

Latest Threads
Access keys and values fr...
Forum: General Coding Help
Last Post: buran
11 hours ago
» Replies: 3
» Views: 83
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 132
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
Nov-15-2025, 02:42 PM
» Replies: 1
» Views: 84
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 01:54 PM
» Replies: 1
» Views: 81
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 334
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 57
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 88
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 320
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 176
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 281

 
  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

  Tuple help!
Posted by: chiron - Nov-21-2020, 04:24 AM - Forum: General Coding Help - Replies (12)

Complete beginner to all things programming, let alone python. I'm looking to numerous sources to help me out learning but I'm struggling big time. I ..... More

Print this item

  Dictionary question
Posted by: kam_uk - Nov-21-2020, 02:07 AM - Forum: Homework - Replies (7)

Hey All

I have a dictionary as such

car_dictionary = {
    "Ford" : "Blue",
    "Nissan" : "Red"
}
I want to assign a par..... More

Print this item

  Convert list of numbers to string of numbers
Posted by: kam_uk - Nov-21-2020, 01:50 AM - Forum: Homework - Replies (5)

Hi

I have a list

My_list = [1, 2, 3, 4, 5]
I want to convert each number from an integer to a string.

I would normally us..... More

Print this item

  to call via console a python-programm
Posted by: Liki - Nov-21-2020, 01:10 AM - Forum: General Coding Help - Replies (9)

Hello,

I'm trying to call an in Python frish-written programm zeit_01 via console.
It didn't run. What I did false?:

[img]https://i.imgur.c..... More

Print this item

  How to modify item in dictionary?
Posted by: Winfried - Nov-21-2020, 12:48 AM - Forum: General Coding Help - Replies (7)

Hello,

I'm using the xmltodict module to handle an XML file like a dictionary.

Does Python prevent mo..... More

Print this item

  How to create a linked list and call it?
Posted by: loves - Nov-20-2020, 09:42 PM - Forum: General Coding Help - Replies (12)

I want to create a linked list and insert dummy data to verify it. Please see my code.
[python]class ListNode:
def __init__(self, val=0, next=N..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Access keys and values fr... 11 hours ago Winfried buran General Codin...
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
  PermissionError: [Errno 1... 11-15, 14:42 Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... 11-15, 13:54 Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... 11-15, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
Most views
  The best Prog... 579048
  Tutorial Requ... 511031
  Web Scraping ... 442046
  Newbie with P... 386095
  New Users Int... 378237
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+ 12108
buran 8196
snippsat 7389
deanhystad 6913
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
tlandr02 Yesterday
Rerus3700 Yesterday
pas88 Yesterday
aanthonymaaleyo3938 Yesterday
chuhlowe 11-15

User Panel Messages

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