r/PythonLearning

▲ 7 r/PythonLearning+1 crossposts

I built a 24/7 endless fish survival game using Pygame with procedurally generated music

Hey everyone,

I created a 24/7 live-streamed project where a fish swims, eats and grows endlessly using Python and Pygame.

​Everything is built from scratch using pure geometry and vector math, which removes the need for external image assets. For the background music, I used numpy to generate continuous procedural pentatonic-scale tones to avoid copyright issues.

​The script runs 24/7 with optimizations to keep CPU usage and memory stable during the infinite loop. You can see it running live here:

Youtube live

u/Leadertoleader — 8 hours ago
▲ 86 r/PythonLearning+1 crossposts

Made my first Python project!

This is my first actual real project, what started as a simple python exercise to learn about dictionaries in python, ended up into a huge learning project for me. Im a beginner in python, used to code but just basic input print codes… some are genuinely stupid.

I took on the challenge to self educate my self python. And this is where i currently am! Im proud of what i did and it will surely expand!

Here the repo with the project. Feel free to check it out!
https://github.com/Stonyax97/MiniGameStore

It has everything from the first ever iteration (which was it self modified a bit since from the very original but it’s still very simple)
I would love for anyone to recommend ideas to add, criticism too. Or anything you think i should learn next for that would be genuinely useful!

u/Stonyax97 — 18 hours ago

Im confused!!

Rn im learning python lang. I can solves basic to medium level problems , I understand which operations to use , how to write code 75% , but i suck at building logic. But either wise my topics are clear. Can you suggest what kind of problems i should be solving?

reddit.com
u/Weary_Gur7008 — 13 hours ago

I’ve completed these beginner Python projects should I build more before starting NumPy/Pandas?

Hi everyone,

I’ve studied Python multiple times before, but I didn’t do much practical coding. Recently, I started building small projects to improve my practical Python skills.

So far, I’ve completed:

- Quiz Game

- Number Guessing Game

- Rock Paper Scissors

- Password Manager

- Pig Game

- Mad Libs Generator

My goal is to move towards Machine Learning.

I haven’t learned NumPy or Pandas yet.

My question is: Are these projects enough to move on to NumPy and Pandas, or should I build a few more Python projects first?

If I should build more projects, what kind of projects would you recommend before starting NumPy/Pandas? I’m mainly looking for projects that would actually help with the transition to data/ML, rather than making many more small games.

Would appreciate advice from people who have already followed a Python → NumPy/Pandas → ML path.

reddit.com
u/purvigupta03 — 14 hours ago

Are these types of exercises useful?

I get the tasks from ChatGPT basically, and I write other manual math related code not sure if this is good to spend too much time on instead of doing mini projects.

To explain more I hit a little bump doing linked list, mostly in OOP I didn’t know much about how classes work. So I pivoted to algorithms and to learn more about classes before going back.

u/Charming-Ad-4323 — 22 hours ago
▲ 2 r/PythonLearning+1 crossposts

Need advice on solving complex arrow/maze puzzles using Computer Vision & Logic Solvers (Low accuracy issues)

Hi everyone,
I'm working on an automated solver for a complex arrow/maze puzzle game (similar to the image attached).
Here is my current workflow:

  1. Detection: I use a custom YOLO model to detect arrowheads and their bounding box coordinates from screen captures.
  2. Grid Mapping: I map the detected center coordinates of arrowheads onto a fixed grid system.
  3. Solving: I pass the grid data into a custom logic/emulator engine to calculate the correct sequence of moves (arrows to tap).
    The Main Problem:
    My solver accuracy is very low. Here are the core technical challenges I'm running into:
    Inaccurate Grid Mapping: The arrows are densely packed with varying paths and lengths. Snapping bounding boxes to a rigid fixed grid often misaligns the true position of the arrow shafts and heads.
    Complex/Overlapping Detection: Because the arrows bend and fold, YOLO often detects multiple arrowheads in the same calculated grid cell, or misinterprets arrow directions.
    Solver Logic Failure: Due to noisy input from the detection stage, the logic solver either fails to find a valid sequence or generates incorrect moves that block execution halfway through.
    Has anyone dealt with a similar vector/maze graph detection problem? What would be a more reliable approach than simple YOLO + fixed grid snapping? Should I look into contour analysis, OCR/graph traversal, or skeletonization algorithms (like Medial Axis Transform) to trace the paths directly?
    Any suggestions, code examples, or architectural advice would be greatly appreciated!
u/Maximum-Fox-2627 — 20 hours ago
▲ 6 r/PythonLearning+1 crossposts

Cupta serpant added by Tony

Tony added the Cupta unit, a serpent of dark magic who returned from the caverns and tries to siphon your life essence, with this git commit.

Tony also changed the control of player's direction from keyboard to mouse, making the player easier to control. But, this now only works when the mouse pointer is inside the game window. If it's outside the direction is still controlled by keyboard as before. So you can now choose the direction control that you prefer.

See the PythonLearningGame repo to add your own game elements to this collaborative project, or simply tell us what you would like to see added to the game.

previous PythonLearningGame post

u/Sea-Ad7805 — 20 hours ago

Law student starting Digital Law — where should I start learning Python?

Hi everyone!

I'm a first-year law student studying Digital Law. My curriculum includes Programming for Lawyers, and later I'll also have subjects related to machine learning, digital technologies, cybersecurity, and data analysis.

I have little to no programming experience, so I'd like to start learning Python before the university courses begin.

My goal isn't to become a software developer. I mainly want to understand programming well enough to use Python for data analysis, automation, legal-tech projects, and eventually work with AI/ML-related topics.

Where would you recommend I start?

Should I:

take a beginner Python course first;

follow the official Python tutorial;

solve problems on platforms like Exercism/Codewars;

build small projects from the beginning;

or follow some other learning path?

If you were starting Python from zero with my goals, what would you learn during the first 2–3 months?

I'd especially appreciate recommendations for free resources and courses.

Thank you in advance

reddit.com
u/Ok_Duty4716 — 17 hours ago

Made an email and password generator

Planning on making it save to a file that stores on the pc but for rn this is what I have

u/organconsumption — 1 day ago

Project Ideas for Practice

I’ve been reading and learning a lot of Python concepts, but I’ve never actually built anything.

I realized that there’s no point in knowing so many concepts if you don’t put them into practice. That’s the only way to really learn.

The hardest part, though, is coming up with project ideas when you only know a few concepts. This is the first project I’ve made while trying to actually put what I’ve learned into practice.

u/7YngMn — 1 day ago

Automation code to use on Drive (in testing phase) ​ ​

Hi! I created this Python code to automate tasks in Google Drive, where I use it to remove photos and videos I no longer use! I've been studying Python for a year now and have mastered its interface.

u/Front_Paper8305 — 1 day ago

Python mini project

Hey guys, thought to share my first mini project with everyone, for this I made a terminal based GitHub account analyzer, where you input a username and the program outputs stuff like the number of repos, languages used, stars and more you can check it out on my GitHub: https://github.com/Blueysweb. I'm also open to take in as much advice as needed

u/Blueysweb — 1 day ago

How to use vs code ? Can I learn python without vs code ?

Yes it sounds very stupid and yes i am fucking stupid who don't know shit and is totally useless who can't do anything, fuck

How can I use vs code ? I am to Stupid to understand, i can't even fucking change name, this their is a way to learn python without vs code ? Fuck i hate my self I am just so stupid.

reddit.com
u/Proper_Card_5520 — 3 days ago

Update : (for people who know my journey)

As some of y'all know i started python 12 days ago, it was going great i made a stopwatch and etc projects but today i was wiping my laptop , my laptop lcd screen was already a bit broken but usable, now whenni was wiping some pressure got applied in broken place and the whole screen turned green and black, the lcd is gone and no one in my connections has money to fix it, maybe its the end rn.

reddit.com
u/ArittroGH — 2 days ago

I am a beginner in python can anyone suggest me some Playlist or full course about it i have save some of them please gothrough it also

u/Vikas04866 — 3 days ago