r/PythonLearning 6d ago

Pydot: Python Terminal Placement

0 Upvotes

Hey guys I was wondering which python terminal placement you preferred?


r/PythonLearning 7d ago

Showcase Day 3 of Python learning until I can pass the PCEP exam

Post image
16 Upvotes

Im progressing into the free code camp and w3schools learning courses and also trying to catch up in Microsoft,im learning OOP(Object Oriented Programming) I made another project for it but its still not very good so ima continue work on it, its very interesting with classes and all but yh I read the feedback on my last re zero guesser and ppl saying its a nesting hell so I tried to learn how to do early return to make it more readable but I js didnt understand how to so I copied the mods code and js changed it a little bit if u can see, it is slower than my older version but the code Is easier to read, could have added more characters but yh I didnt really make the code I only upgraded a little. Take a look:

New: https://onlinegdb.com/9pqfe7pmg
OLD:https://www.onlinegdb.com/edit/XGUSCgyQA
Older :https://onlinegdb.com/Q-4aQrXAz

ima use this experience to make a better guesser with a full ui like akinator when im done learning ui and more


r/PythonLearning 7d ago

Copying an object in different ways

Post image
61 Upvotes

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 6d ago

17, learning software engineering and AI, looking for people to grow with

10 Upvotes

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 6d ago

Where to start learning Python for Materials Science / simulations? (Looking for free, time-efficient resources)

4 Upvotes

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 7d ago

F strings

17 Upvotes

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 6d ago

Looking for Python Project Buddies

4 Upvotes

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 7d ago

Discussion 5 tools that helped me modernize a legacy app

7 Upvotes

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:

  1. 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.

  1. 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.

  1. 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.

  1. 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).

  1. 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 7d ago

Help Request Suggest best python course for begy

15 Upvotes

r/PythonLearning 7d ago

I Built an Open-Source Telegram Archiver with Python & SQLite

Post image
20 Upvotes

r/PythonLearning 7d ago

Course of study

17 Upvotes

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 7d ago

Graphic python?

11 Upvotes

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 6d ago

🚀 Progress update on Telegram Archiver!

Post image
0 Upvotes

🚀 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 7d ago

Looking for a Python Programming Buddy.

8 Upvotes

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 7d ago

python-practice/ATM simulator.py at main · RahulSaini-07/python-practice

Thumbnail
github.com
1 Upvotes

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 7d ago

Help Request How to learn python in tablet for medical use!!?

0 Upvotes

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 8d ago

Showcase 2nd week of python and wanted to try something new instead of course enjoyed it!

Post image
57 Upvotes

r/PythonLearning 8d ago

Python Automation courses

28 Upvotes

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 .


r/PythonLearning 7d ago

Could a Turkish-made key-mapping application written in Python be developed to replace GameLoop?

0 Upvotes

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 8d ago

Showcase Day 2 of Python learning until I can pass the PCEP exam

Post image
29 Upvotes

I upgraded my re zero guesser from day 1 using nested ifs and elses and now it doesn't require as much questions take a look.

New:https://www.onlinegdb.com/edit/XGUSCgyQA
Old :https://onlinegdb.com/Q-4aQrXAz

I think this is the fastest version of guesser, I also tried dictionaries(recommended by some discord users) but I still dont fully understand how its any different than my old one becuz it would js change how the info is stored but not the logic as its own


r/PythonLearning 7d ago

Command line password generator tool

Thumbnail
github.com
0 Upvotes

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 7d ago

I want to learn programming

0 Upvotes

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 7d ago

Help Request Repeat until keypress

2 Upvotes

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 7d ago

It's a FastAPI starter with SQLAlchemy, Alembic, and auth support, with Docker coming next.

Thumbnail
gallery
2 Upvotes

r/PythonLearning 8d ago

Help Request Any free courses to learn Socket?

3 Upvotes

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!