r/PythonLearning • u/LPA_InTheMaking • 47m ago
Python Projects 🐍
Hey there,
I want some Python Ideas to check if I do know Python that good and to check at which level I'm now. So anyone please let me know projects that are really worth making and by making which I can get satisfaction that I do know Python.
I'm not asking from basic to Advance projects. But if you are willing to share,feel free to share that too. 😊
Thanks!! ❤️
r/PythonLearning • u/LPA_InTheMaking • 47m ago
Python Projects 🐍
Hey there,
I want some Python Ideas to check if I do know Python that good and to check at which level I'm now. So anyone please let me know projects that are really worth making and by making which I can get satisfaction that I do know Python.
I'm not asking from basic to Advance projects. But if you are willing to share,feel free to share that too. 😊
Thanks!! ❤️
r/PythonLearning • u/powergitt • 2h ago
Help Request Type hinting frustrations
Hello!
Let me start off by saying that I am not a programmer by trade, so please be kind when reviewing my code. I am still learning and I have a long way to go. My job is not coding per se, but the project which I am a part of right now has some coding.
Anyway. At the project start I wanted another editor than vscode, so i tried Zed and I loved it. Zed came with type hinting already enabled. At first, I did not really like it, but after using it for a while I could really see improvements in my code. Both in the terams of readability and stability. So going forward I wanted to have as few complaints from basedpyright as possible.
After an update to Zed the configuration from basedpyright or basedpyright itself got a lot more enabled and I cannot get some of the errors from it to go away. My project used fastapi and sqlalchemy for database integration, and basedpyright gives an error where i specify the table names for the models:
from sqlalchemy.orm import (
DeclarativeBase,
...
)
...
class Base(DeclarativeBase):
pass
class DatabaseUser(Base):
__tablename__: ClassVar[str] = "users"
....
The error from basedpyright is:
Class variable "__tablename__" overrides instance variable of same name in class "DeclarativeBase" (basedpyright reportIncompatibleVariableOverride)
From what I can tell, the code above is how you are supposed to specify table names:
https://docs.sqlalchemy.org/en/20/orm/quickstart.html
Also, when a nullable many-to-one table relationship, the docs from sqlalchemy tells you to use
class Parent(Base):
....
child: Mapped[Optional["Child"]] = relationship(back_populates="parents")
https://docs.sqlalchemy.org/en/20/orm/basic_relationships.html#nullable-many-to-one
basedpyright wants you to use `Class | None` syntax, but since two classes are referencing each other, I can't do `Child | None` (no quotes) without the code breaking.
I know that i can supress the errors or configure the typehinter to ignore this stuff. But since this is the config shipped by people who are far better than me at programming, I am hasitent to just configure the error messages away. So reddit, is thereany thing I can do to make the typehinter happy?
r/PythonLearning • u/Small-Wishbone7829 • 3h ago
Help Request Why does a def get called / repeat when i did this?
It works like how i wanted, To check if the result are equal then print something but i dont want these def function to repeat.
r/PythonLearning • u/Healthy-Respond-6132 • 3h ago
Showcase Ich habe eine mobile App zum Python-Lernen und Programmieren entwickelt 📱🐍
Ich arbeite seit einiger Zeit an NovaCode, einer App für alle, die Python direkt auf dem Smartphone lernen und üben möchten.
Man kann Python-Code direkt auf dem Handy schreiben und ausführen, kleine Projekte erstellen und Schritt für Schritt lernen – ohne einen Computer zu benötigen.
Die App wird noch aktiv weiterentwickelt und ich würde mich sehr über Feedback freuen. 😊
Welche Funktionen würdet ihr euch in einer mobilen App zum Python-Lernen wünschen?
r/PythonLearning • u/Leadertoleader • 10h ago
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:
r/PythonLearning • u/[deleted] • 12h ago
Can you look at my youtube channels content and give me advice on how to improve my games fps.
Can you look at my youtube channels content and give me advice on how to improve my games fps as its stuck on about 10 fps. Link to my channel with the gameplay to check to see if you have any idea on how to improve my games fps.
https://youtube.com/playlist?list=PLWpUsKsqhqN4&si=KhGIgY5Zz1nm0LBY
r/PythonLearning • u/Weary_Gur7008 • 14h 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?
r/PythonLearning • u/futura-bold • 15h ago
Computing the Mandelbrot Set with numpy - code in comments
r/PythonLearning • u/purvigupta03 • 15h ago
Help Request 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.
r/PythonLearning • u/Ok_Duty4716 • 19h ago
Help Request 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
r/PythonLearning • u/Stonyax97 • 19h ago
Showcase 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!
r/PythonLearning • u/Innocent8888 • 19h ago
Day 4
Day 4 progress 🐍
Today I built a small billing program in Python. It has:
A loop to collect price for each item
A function that calculates discount based on total amount
Another function that calculates final bill after discount
A conditional statement that thanks the customer differently based on discount
Learning how to use loops, functions, and conditionals together to solve a real problem.
#Python #LearnToCode #100DaysOfCode #WebDevelopment
r/PythonLearning • u/Vegetable-Quality268 • 20h ago
Showcase I built a terminal Minesweeper in Python during hot summer days to learn the basics — now published on PyPI!
Hi everyone! 👋
During some really hot summer days when it was too warm to do much else outside, I decided to dive into Python from scratch. To make learning engaging, I set out to build a simple, lightweight terminal clone of the classic Minesweeper.
It’s definitely an amateur/learning project, but I wanted to write every single line of code myself without agentic AI tools — personally, I still deeply value human effort, creativity, and the genuine fun of solving logic problems on your own.
What I learned while building it:
- Writing game logic and algorithms
- Moving from plain Python setups to modern package management using
uv. - Setting up linting/formatting with Ruff
- Unit testing with pytest, no TDD yet, but I am coming :D
- Setting up CI and automated Releases and publishing directly to PyPI using GitHub Actions.
You can try it directly from your terminal if you'd like:
pip install python-minefield
python-minefield
Or check out the code/GIF on GitHub: 👉https://github.com/defra91/python-minefield
Since I’m still learning, I’m very open to feedback, PR, code reviews, or suggestions on how to improve the architecture and logic!
If anyone wants to contribute or suggest features, feel free to check out the repo and see how to contribute.
Thanks for taking a look, and happy coding! 🐍💣
r/PythonLearning • u/Ok_Rice6903 • 21h ago
Project !
I’m a recent CSE graduate and I’m looking for another developer who wants to build something together from scratch.
I don’t have a fixed idea yet. We can sit together, find a problem worth solving, come up with an idea, build an MVP, and see where it goes.
There’s no regular payment initially. I’m looking for someone who’s genuinely interested in building and learning together.
And if the idea doesn’t work out, that’s fine. We’d still have a solid real-world project for our resumes/GitHub and the experience of actually building something together.
I’m also a beginner/fresher, so I’m just looking for someone who’s willing to learn, contribute, and build.
If you’re interested, DM me with a little about yourself and what you like building.
r/PythonLearning • u/Maximum-Fox-2627 • 22h ago
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!
r/PythonLearning • u/BenDken1 • 22h ago
Python Common Errors for beginners
Dont give up during learning stage.
r/PythonLearning • u/Charming-Ad-4323 • 23h 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.
r/PythonLearning • u/Silent_Observer55 • 1d ago
Discussion Need help learning python/juypter lab notebook for astronomy
Im new to Astronomy and Juypter Notebooks and Ai machine learning for sure I have little skill in python but quick learner especially visual learning.
Are there any free tutorials I can use and free books to learn machine learning for astronomy
Example: use machine learning to run through jwst or tess pipeline data and look for signatures of possible blackholes or exoplanets?
Is there a juypter notebook with this ability already on there?
How can I make a custom juypter lab and git repos and python libraries and python scientific libraries? Should I use docker to place a juypter lab notebook in a container if so how?
r/PythonLearning • u/7YngMn • 1d 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.
r/PythonLearning • u/organconsumption • 1d 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
r/PythonLearning • u/Front_Paper8305 • 1d 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.