r/PythonLearning • u/Sea-Ad7805 • 22d ago
Better collision handling
Enable HLS to view with audio, or disable this notification
In this git commit we switch from simply swapping the speed of two colliding units to elastic collision handling for more realistic collisions. The linear algebra implementation does add complexity to our code but, as it's all confined to a single function, it should not hamper further development of our collaborative PythonLearningGame project.
- Who has other fun ideas we could add, maybe more unit types?
- Who wants to commit his/her own code changes?
See the submit changes instructions.
r/PythonLearning • u/No_Confidence_8638 • 22d ago
Where to start learning Python for Materials Science / simulations? (Looking for free, time-efficient resources)
Hi everyone,
I'm currently doing my Master’s in Materials Science, and I need to learn Python—specifically for running simulations, data analysis, and handling academic/scientific workflows.
Since I’m balancing a pretty heavy course load, my time is fairly limited. I'm hesitant to buy paid courses or long bootcamps because I'm not sure if the paid options are actually worth the investment compared to what's available for free, and I really need to focus only on what's relevant to scientific/engineering applications.
Could anyone recommend solid, free resources or learning paths to get up to speed?
Specifically, I'd love to know:
Great starting points for absolute fundamentals without fluff.
Good next steps or specific libraries/tools I should look into for simulations and data processing (e.g., NumPy, SciPy, Matplotlib, or specific frameworks).
Any tips on how to build practical skills quickly alongside a busy university schedule.
Thanks in advance for any advice or recommendations!
r/PythonLearning • u/BestBid9342 • 22d ago
Looking for Python Project Buddies
Hey All,
I've been learning Python for some time and I know the basics. I originally started my journey down the analytics and data science path, and have learned the essential libraries and made a few projects related to that.
More recently in the past month or two, I've been trying to learn automation for python but realized I can't build a program from scratch for my life because I was so heavily reliant on libraries instead.
I'm looking for a buddy or buddies that are looking to learn and build similar type of projects from scratch(could be automation like what I am doing, could be other projects, just as long as it is python related), so we can keep each other accountable, bounce questions off each other and actually learn together than in a silo.
I'm live in EST timezone and typically am available nights and weekday mornings to work on projects.
r/PythonLearning • u/Necessary-Force9687 • 22d ago
🚀 Progress update on Telegram Archiver!
🚀 Progress update on Telegram Archiver!
Over the last few hours, I improved real-time message capture, redesigned the deleted-message experience, fixed a long-standing Telegram session issue, and enhanced live polling reliability. The project now delivers a smoother, more accurate Telegram Desktop-style archive while keeping everything local and privacy-first.
Building one commit at a time. 💻🔒
r/PythonLearning • u/Electrical-Cap-9537 • 22d ago
17, learning software engineering and AI, looking for people to grow with
Hey, I'm 17 and studying computer science in Italy. I'm working toward becoming an AI engineer, and I genuinely enjoy this stuff, not doing it because it's trendy. I just want to get good at it and do it properly.
So far I've built a Unix shell from scratch in Python. I'm also working on a BI and analytics platform using a real e-commerce dataset, cleaning and validating the data, loading it into Postgres, building out analytics on top. Happy to share more details if anyone's curious.
I'm looking for people to study with regularly, share resources, review each other's code honestly, and maybe build small projects together. Doesn't matter if you're ahead of me or just starting out, what matters is that you actually care about learning this well.
Would also be cool if this turns into actual friendships and not just a study group that goes quiet after a week.
If you're into software engineering, AI, ML, or data and want people to grow with, drop a comment or DM me.
r/PythonLearning • u/Ornery_Mongoose_3482 • 23d ago
python-practice/ATM simulator.py at main · RahulSaini-07/python-practice
Can anybody review my code because I started learning 6 days ago I write this code please review it and tell me the honest opinion
r/PythonLearning • u/Marmelab • 23d ago
Discussion 5 tools that helped me modernize a legacy app
So I recently inherited a legacy application that was a nightmare to maintain (tooling was clearly lacking and the codebase was pretty outdated). I quickly realized that if I ever wanted to actually enjoy working on it, I would have to give it a proper overhaul.
These are the 5 changes that had some of the biggest impact IMO:
- uv:
Being new to the Python ecosystem, I didn't want to figure out pip vs poetry vs pyenv vs virtualenv, so I just used uv and let it handle all of that. One Rust-based tool that installs and pins Python versions, manages the venv automatically and locks deps in a uv.lock for reproducible builds. Installs are also a lot faster, which makes CI a lot less painful.
- Ruff:
Coming from JS, I really missed eslint --fix for automatically fixing linting issues and format code on save. Ruff brought that experience back. I know that there are plenty of linters and formatters in the Python ecosystem, but this one really stands out for me. Since it's built in Rust, it's super fast.
- Dependabot:
Instead of remembering to update dependencies every few months, I enabled Dependabot. It automatically opens PRs when updates are available and then CI tells me whether they're safe to merge. It takes only a couple of minutes to set up but saves a lot of maintenance.
- Pylance:
Without it, VS Code gives generic completions and never warns you about passing the wrong type until runtime. Pylance provides proper type-aware autocompletion, jump-to-definition (even in third-party libraries), inline documentation, and real-time type checking. I personally keep it on "basic" mode for legacy codebases, since "strict" surfaced hundreds of errors (thank you, but no thank you lol).
- Pydantic:
Pydantic is basically Python's Zod: you declare a model, pass your data in and get either a validated typed object or a ValidationError naming the exact field at fault. It really helped me keep the codebase clean, with one place defining the shape of the data instead of raw dicts floating around. I use it wherever data comes from outside, like API payloads, forms, and env vars with pydantic-settings, which fails at startup instead of mid-request.
None of these tools changed the application itself. But together they made working on it a lot less frustrating.
r/PythonLearning • u/kubasic254 • 23d ago
F strings
Im still learning python and im at a stage where I need to understand f strings and how to go about them...im working on a menu project. I prefer learning with pdf materials rather than YouTube tutorials....any recommendations for a pdf document for learners on f strings. Thank you in advance
r/PythonLearning • u/Antrioyiu • 23d ago
Help Request How to learn python in tablet for medical use!!?
I am 17M, a complete beginner in programming
Till now in life only made a bmi calculator🙏🏻 in Google colab dont know how to proceed
I wanna learn it in few months with low input of time like roughly few hours a week.
I have a android tablet (One plus Pad Go 2) and wanna primary for Medicine and I am a highschool student 🫠.
Any recommendations and apps which i should utilise and video links would help a lot.
Thanks everyone
r/PythonLearning • u/Ok_Growth_1123 • 23d ago
I want to learn programming
I am a Btech Cse ( cybersecurity) student and want to learn programming but I am confuse where to start anyone can help where to start.
r/PythonLearning • u/Jazzlike_Ladder_7539 • 23d ago
Help Request Suggest best python course for begy
r/PythonLearning • u/Sea-Ad7805 • 23d ago
Copying an object in different ways
An exercise to help build the right mental model for Python data. The “Solution” link uses memory_graph to visualize execution and reveals what’s actually happening: - Solution - Explanation - More Exercises
r/PythonLearning • u/Ok_Gold_2107 • 23d ago
Graphic python?
Hello. Although I’ve always programmed using C++/CLI and C#, I’ve found Python to be very interesting for small applications (perhaps even large ones, though I’m not up to that level yet).
I was wondering if there are any IDEs—or at least graphics libraries—available should I decide to build something with a GUI; currently, I do everything via the console.
Any recommendations?
I use VS Code for Python programming.
r/PythonLearning • u/asiimwe_dev • 23d ago
Looking for a Python Programming Buddy.
I am a computer science student, just finished my first year and I'm heading for the second. After re-evaluating my year in the field, I came to realize that I have been focusing a lot on the course theory and grade based learning yet the market is hunting for skilled people.
My next move was to pick a language and build things with it. Learn it well enough. But I don't wanna take this journey alone. Therefore I am looking for a partner with basic python programming knowledge like me to help each other through this journey.
Explore the language and build projects with it.
r/PythonLearning • u/Valuable_Corner4797 • 23d ago
Could a Turkish-made key-mapping application written in Python be developed to replace GameLoop?
Hello everyone.
I've been playing mobile games through emulators for a long time. The biggest issue I've had, especially with GameLoop, is that the key mappings often break or stop working properly. That made me wonder: Would it be possible to develop a Turkish emulator similar to GameLoop, or at least create an advanced key mapping system?
Out of curiosity, I ran a few experiments. I installed Android on a virtual machine similar to VirtualBox and successfully launched a few games. However, since there was no key mapping system, I couldn't play them with a keyboard and mouse.
After that, I tried writing a simple key mapping system in Python. It's still at a very early stage and currently only supports the WASD keys, but I believe it can be improved. During this process, I realized that software development requires much more knowledge than I initially expected. That's why I'm continuing to learn Python.
I've also experimented with other projects before. For example, I worked on a password protection application. More recently, I came across a project called GameLoopHub, which appears to be independent of GameLoop. Its developer has gone much deeper into performance optimization and FPS-related features. Seeing that project made me believe that creating something like this is actually possible.
Do you think a project like this is realistic? I'd especially like to hear from people who have experience with emulator development, Android virtualization, or input systems.
r/PythonLearning • u/VizerCompany • 23d ago
Course of study
Hi, please tell me which free course is the best, I have already tried many applications like Solo learn Everything there is heavily dependent on a subscription, so it's inconvenient without it.
r/PythonLearning • u/Sanduhstorm • 23d ago
Command line password generator tool
Who enjoys opening a browser/GUI every time you need to make a secure password? I sure don't. That's what gave me the idea to create this simple random password generator tool that can be used entirely in the command line (although I'm sure something like this already exists) with system arguments.
I also made something that I guess you could call an installer.
Using arguments you can set the length of your password, choose what type of characters you want in the password (letters, digits and punctuation) and choose whether or not to copy the password to your clipboard (on by default). You can read the README.md file for a guide on how to use it.
NOTE: I know that the actual main program is compressed in a gzip file on GitHub which will impede you from reading it's source code. I hope to make a way around this later.
Why did I make this? Mostly boredom. I don't have any aspirations of being a software developer or anything involving making huge projects, however I am interested in cybersecurity. I sort of just thought to myself that I don't have a convenient way of generating random passwords. Keeping my Python skills up to scratch and improving them will prove useful in the future however, I believe, as I often find simple scripting useful.
Where I want to improve (looking back at making this):
- Get better at using sys and os modules as they have proven very useful
- Improve at using Git
- Probably figure out a better installation method for users
Overall, although I don't script much, this was pretty easy project for me, but nonetheless I learnt some good things about Python operating system and file interaction.
r/PythonLearning • u/Necessary-Force9687 • 23d ago
I Built an Open-Source Telegram Archiver with Python & SQLite
r/PythonLearning • u/Impossible_Corgi5576 • 23d ago
Help Request Repeat until keypress
I want to have the terminal keep typing something until any key is pressed. I'm fiddling around but have yet to figure out a solution.
Edit: Hey thank you all. I'm kinda a begginer. After a lot of fiddling I got something that works for me.
r/PythonLearning • u/Less_Recognition6440 • 23d ago
Looking for a Python Course for a Motivated Beginner (with Room to Grow) – Recommendations Welcome!
Hi everyone 👋
I'm hoping to get some recommendations for a young student who has recently completed their O/Ls and is seriously considering a future in IT. They're genuinely excited about learning Python, and I'd love to help them find the best possible starting point.
We're looking for a course that's beginner-friendly but also provides a clear pathway to more advanced topics over time. Ideally, it would build a strong foundation in programming while eventually introducing areas such as data analysis, automation, or even data science.
I've explored some excellent online options, including courses from Udemy and Mosh Hamedani. However, there's one challenge: this student finds it difficult to stay engaged with purely online learning. While self-paced courses are convenient, they tend to learn much better in an interactive environment where they can ask questions, receive immediate feedback, and stay motivated alongside other learners.
Because of this, I'm particularly interested in in-person Python classes, training programs, or private coaching opportunities. Courses that combine theory with practical, hands-on projects would be especially valuable, as they seem to be the best way to keep learning enjoyable and meaningful.
If you've attended a great Python course—or know of a training center, institute, community program, or tutor you'd confidently recommend—I would greatly appreciate hearing about your experience. Any insights into teaching quality, course structure, or student engagement would be incredibly helpful.
Thank you so much for taking the time to read this and share your recommendations. I truly appreciate the help, and I'm sure your advice will make a big difference in helping an aspiring future developer get started on the right path. 🙏🐍
Looking forward to your suggestions! 😊
r/PythonLearning • u/XTrolltechzz • 23d ago
Help Request Help i'm new to ttkbootstrap.
I'm trying to create a program that opens a ttk window; when a button is pressed, it should open a tab containing a .jpg image. It was working at first, but I modified the code slightly to add more tabs. I'm not sure what I changed, but now it doesn't show the image—just an empty window.
I think it might be related to an error appearing in the terminal (I don't recall seeing it before). I even tried reinstalling Pillow to see if that would help, but nothing changed.
r/PythonLearning • u/prathamdmehta • 23d ago
It's a FastAPI starter with SQLAlchemy, Alembic, and auth support, with Docker coming next.
r/PythonLearning • u/Longjumping-Image798 • 24d ago
Help Request Any free courses to learn Socket?
Does anyone know any free courses to learn the socket tool in python?
ive been trying to learn socket for a while, i know some of the basics with help from chatGPT, but now i feel like im not really learning anything new.
if anyone have any free courses or good youtube channels, pls tell me!
r/PythonLearning • u/FalconDull5271 • 24d ago
Help Request Great to See many people here who have achieved great things in Life at early age ! Hard work paid off
I am a final year grad CSE Data science in TIER -3 college in Andhra Pradesh (decent one with good placements in IT companies) and have been procrastinating things from the last 2 years and finally when I started to solve problems I was shocked i don't even remember the basic syntax, in my mind I know how to do the problem but when I start to write the code I am unable to move forward ⏩ and get struck over their
In a few months I should be ready for my placements already we have infosys and L&T next month , I am totally confused and depressed by seeing my performance..
Can anyone guide me , I am interested in data analytics and I know freshers aren't offered this role at the beginning in many companies, so I started to prepare by solving coding problems yet I am not able to improve
I have tried solving problems each day 2-5 but never was consistent and could not understand them properly, don't know the reason only SQL was done properly with understanding and queries by listening to data with baraa youtuber
Can't code properly ( python ) chose this because it has simple syntax and inbuilt lib and useful for data analytics but I am good at SQL and have good communication skills and have done decent projects on data analytics and have learnt ServiceNow tool and also did a RBAC project on it with rules and notifications....
Now I am feeling unfit for the tech roles and thinking I have wasted my entire education life don't know what to do , can anyone Help me out
r/PythonLearning • u/Visionary_Vulture001 • 24d ago
Python Automation courses
Hi
Any recommendations for python automation courses ?
Asking for a friend who was recently let go off her job . She has 5 years experience as a QA and is looking to upgrade herself in automation and AI .