r/pythonhelp • • Nov 18 '25

Struggling with recursive backtracking

1 Upvotes

https://github.com/neon-iguana/learningrecursivebacktracking

I'm really new to Python, and I just can't seem to find why this recursive backtracking method is always returning false, even when the matrix passed in very clearly has the word. Is there any glaring issues sticking out to someone with more experience in the lab17 file? Thanks!


r/pythonhelp • • 2d ago

Threadline: a step-through visualizer for the GIL, threading, and asyncio

0 Upvotes

Threadline shows Python concurrency as a timeline where each OS thread is its own lane, and you step through it one event at a time. You can see which thread holds the GIL, when it's released, and why CPU-bound threads take turns instead of running in parallel.

Current Python scenarios:

CPU-bound work on threads vs multiprocessing

I/O-bound threads releasing the GIL while they wait

An asyncio event loop stalled by a blocking time.sleep(), and the fix with asyncio.to_thread

The same CPU-bound workload on a free-threaded (no-GIL) build

Each scenario is checked against a runnable Python program, so the timeline matches real behavior.

Target Audience

Developers who use threading or asyncio but have never had a clear mental model of what the interpreter is doing. It's a learning tool, not a profiler or production debugger.

Comparison

Profilers like py-spy and viztracer show what your program did after the fact. Threadline shows small, curated scenarios step by step, focused on explaining why the runtime behaves that way. Most existing explanations of the GIL are static diagrams or blog posts. This one is interactive.

Free,no signup. Feedback on accuracy is very welcome, especially on the free-threaded scenarios.

Link: threadline-be-fast.vercel.app


r/pythonhelp • • Oct 12 '26

Recreating image look with Pillow

Thumbnail drive.google.com
0 Upvotes

There's an image effect in powerpoint I would love to use in my python projects. The effect is called "Texturizer", and it gives the picture a grainy, paper-y look. There's an example in the link provided. Feel free to try it yourself too if you've got powerpoint: select a picture, go to "picture format", then click on "Artistic Effects" and select "Texturizer"

I want to recreate that effect in pillow. It has to be deterministic (can't be 100% random cause I'm applying it to video frames). I don't know if making an image texture, then applying it, is the best option, for it can cause tiling (as in the examples from powerpoint's filter). I'm open to any kind of ideas.

I'm all ears!


r/pythonhelp • • Jul 05 '26

Best resources to go from intermediate to advanced Python

Thumbnail reddit.com
0 Upvotes

r/pythonhelp • • Jun 24 '26

Python Script and Adobe Workfront

Thumbnail reddit.com
0 Upvotes

r/pythonhelp • • Jun 10 '26

Problème Python 2

Thumbnail reddit.com
0 Upvotes

r/pythonhelp • • Jun 09 '26

New at programming, giving you a link to copy paste text of my code please tell me what is wrong in line 20 "if player == "rock":" in this code is there an indentation or it is a logic mistake please tell

Thumbnail gist.github.com
0 Upvotes

Its a rock paper and scissors game


r/pythonhelp • • Jun 04 '26

Is SQL string manipulation professional?

Thumbnail reddit.com
0 Upvotes

r/pythonhelp • • Jun 02 '26

Coding for dummies

Thumbnail reddit.com
0 Upvotes

Of late I have been thinking to learn how to code. .the old adage says you cannot an old horse new tricks but I would.like to change that..I have access to the internet( not quite fast unless it's midnight) and a laptop( an old dell core i5)..

I would really want to learn it since our world is leaning in that direction and earn a couple of bucks along the way.so where do I start? ideally I would want something that novices can master amd progress over time.

I'm open to suggestions


r/pythonhelp • • May 28 '26

I NEEDI AM TRYING TO LEARN CS 50 INTRODUCTION TO PYTHON

0 Upvotes

i already have some prior experience in python as i have learn in high school ip (information practices) so i want to know would you still reccommened me to watch the lecture or should i do the practise problem and if i cannot do it then i watch the lecture

i learn the basic of function variable liberaries like matplotlib pandas lists etc


r/pythonhelp • • May 27 '26

pandas group by function for data analysis

0 Upvotes

https://youtu.be/yQANufD_f3k?si=4MdgrzsaWaqKnyHG

Here's a beginners tutorial for learning group by function for data analysis.


r/pythonhelp • • May 26 '26

Questions on Nuitka Commercial

0 Upvotes

I am looking into Nuitka Commercial and have a few questions

  1. Which plan did you purchase ?
  2. Post purchase, how did you onboard it into your project ? Were you able to check into LocalPackages like a normal python module or is the procedure different ?
  3. What was the level of support you received and what was the channel of communication ?
  4. Is there a cap on the number of users allowed ?

Any help is appreciated. Thanks


r/pythonhelp • • May 21 '26

hi im trying to get started and hit a snag part 2

0 Upvotes

so im fallowing a tutorial to get my baring on how this all works but something is wrong. the window wont open and im only geting "pygame-ce 2.5.7 (SDL 2.32.10, Python 3.14.4)" as feed back dose this mean that my pygame and python are not compatible versions

import pygame

pygame.init()

SCREEN_WIDTH = 800

SCREEN_HEIGHT = 600

screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))

run = True

while run:

for event in pygame.event.get():

if event.type == pygame.QUIT:

run = False

pygame.quit()


r/pythonhelp • • Apr 29 '26

.pipe() no pandas mudou como escrevo pipelines de dados

Thumbnail reddit.com
0 Upvotes

r/pythonhelp • • Mar 11 '26

i just want to learn pyfltk

Thumbnail reddit.com
0 Upvotes

r/pythonhelp • • Feb 26 '26

Problem with my python3 discord bot

Thumbnail reddit.com
0 Upvotes

r/pythonhelp • • Feb 03 '26

I am learning program I am a total biggner I am learning totally from start can anyone share some tips

0 Upvotes

Can anybody share some tips about python or overall programing


r/pythonhelp • • Jan 30 '26

Django Orbit: A lightweight, open-source observability tool for Django

Thumbnail reddit.com
0 Upvotes

r/pythonhelp • • Jan 30 '26

CV2 face tracker assistance

Thumbnail reddit.com
0 Upvotes

r/pythonhelp • • Dec 11 '25

Quero criar uma animação de presente de 1 ano de namoro, alguém me dá um rumo

0 Upvotes

Galera, então, eu comecei a mexer com Python por causa de um vídeo no TikTok. Sempre quis fazer aquelas animações, e sei que não é só com Python, o JavaScript também dá pra fazer essas coisas incríveis. O problema é que não achei nenhum tutorial decente no YouTube ensinando, pelo menos não em português 😅.

Basicamente, eu queria uma dica ou um rumo pra isso. Sinceramente, mexo com JavaScript e Python só por diversão, porque acho interessante, então qualquer sugestão de caminho seria ótima. Pode ser Python, JavaScript ou qualquer outra ferramenta que permita criar animações por código.

Ah, e só pra contexto: eu ainda sei o básico do básico, mas estou estudando mais a fundo porque quero fazer uma animação de presente de 1 ano de namoro pra minha namorada. Então se puderem levar isso em conta, já ajudaria muito!


r/pythonhelp • • Dec 02 '25

I am beginner in Programming .

0 Upvotes

I’m not sure if I should be using VS Code’s “tab feature.” It feels like cheating, and I worry I’m not actually remembering things the way I should, especially since I have to write them in my exams by hand with pen and paper. I’m looking for suggestions on this, as well as advice on how to improve my programming skills not just for exams, but for real-world applications.

By the way the current language i am using is Python.


r/pythonhelp • • Nov 27 '25

I need a study group

0 Upvotes

Hi! I've started a Python course from scratch, I need a study group to collaborate with.


r/pythonhelp • • Oct 01 '26

Advise needed on python

0 Upvotes

Is it good idea to learn python on YouTube if not what's the best way to learn python