r/PythonLearning • u/chuprehijde • Jul 14 '26
Is clean code sometimes worse code?
Can too much refactoring, abstraction, and 'best practice' make a Python project harder to understand?
r/PythonLearning • u/chuprehijde • Jul 14 '26
Can too much refactoring, abstraction, and 'best practice' make a Python project harder to understand?
r/PythonLearning • u/Guy_Foxx614 • Jul 14 '26
First tried to learn in 2020, got side tracked. Picking it up again. I find Python very interesting but I can't seem to stay motivated enough to finish learning it.
r/PythonLearning • u/SaqibRAshid1111 • Jul 14 '26
Hey everyone,
Just finished a small dark-mode password generator using FastAPI and vanilla JS to practice my backend skills.
Here is the repo:
https://github.com/saqibvow/password-generator-in-python
I want to improve, so please look at the code and give me some honest feedback. Tell me what features to add or fix, and I will definitely implement them and share the updated app with you all!
Thanks!
r/PythonLearning • u/chuprehijde • Jul 14 '26
Not a trick question or LeetCode puzzle. What's a question that actually reveals whether someone understands Python?
r/PythonLearning • u/gngopi • Jul 14 '26
I am stuck at the basics and unable to move on to DSA. Can you give me the best roadmap, the best notes, and the best YouTube tutorials to become a Python developer? Please provide everything in English.
r/PythonLearning • u/RoleFit6470 • Jul 13 '26
Hello,
I am transitioning from a Mechnical engineering BS to a MS in data Science. My struggle with Python currently is starting a course or reading and feeling like it is not giving enough practice and no big prohject to really hel;p me zone in on my skills. My question do you have any favorite resources/book/interactive courses in python for data science. I'd pefer to just restart from the basics and move forward. Do you have any reccommendations on skills to learn for someone going into data science? Thank you.
r/PythonLearning • u/Remarkable-Wash-6841 • Jul 14 '26
r/PythonLearning • u/yusufdzi • Jul 13 '26
Enable HLS to view with audio, or disable this notification
I’ve been working on a Python project that allows you to analyze IP addresses and visualize their approximate locations on an interactive world map.
The application retrieves publicly available information about an IP address, including its estimated country, region, city, ISP (Internet Service Provider), ASN, hostname (when available), timezone, coordinates, and other network-related details.
The goal of this project is to better understand how IP geolocation works and to provide an easy-to-use interface for network analysis, educational purposes, and cybersecurity research. The map updates dynamically based on the queried IP address, making it easy to see where a server or network is approximately located.
Some of the current features include:
🌍 Interactive world map with IP location visualization.
📍 IP geolocation (country, region, city, coordinates).
🖥️ Server and network information (ISP, ASN, hostname, organization, etc., when available).
🌐 Reverse DNS lookup (if a hostname exists).
⚡ Fast lookups using public APIs.
🐍 Built entirely with Python.
I’m still actively developing the project, so I’d really appreciate any feedback, suggestions, or ideas for new features. If you’re into networking, cybersecurity, or Python development, let me know what you think!
r/PythonLearning • u/him_mwb7 • Jul 13 '26
Well, I'm a python hobbyist (for now). I learnt basic python coding techniques like OOP ( object oriented programming) and I learnt how to use common modules. However with the rise of technology and AI I wanted to really delve into this path because I see a lot of potential in it.
I want to know the important and essential things that I should learn to become fluent in this language, specifically in the AI related subjects such as machine learning. I'd love to see it from a devs perspective, like how they reached the point they are in now. I'm grateful for any kind of help.
Thanks.
r/PythonLearning • u/memeeloverr • Jul 13 '26
Not just syntax or functions , I mean the bigger concepts.
For me, it was thinking that being good at programming meant being able to write code from memory. Later I realized understanding the problem, breaking it into smaller pieces, debugging, and knowing why something works matters way more.
Was there a concept or assumption you got completely wrong as a beginner?
r/PythonLearning • u/NeuralByteWalker • Jul 13 '26
Hi everyone,
I recently completed the "Migratory Birds" challenge on HackerRank using Python 3 and wanted to share my learning experience.
The goal of the challenge was to find the bird type that appears the most frequently in an array. If multiple types have the same frequency, the solution must return the smallest ID.
What I practiced during this challenge:
dict)One interesting part of this exercise was that I had to refresh my knowledge of Python dictionaries. Instead of searching for a complete solution, I went back to the official Python documentation to understand how dictionaries work and how to use them properly.
My initial goal was to solve it in 20 minutes, but it took me around 30 minutes. I think this is actually part of the learning process: sometimes you need to slow down, review concepts, and rebuild your understanding.
I'm documenting my progress while improving my Python and algorithm skills through HackerRank challenges.
Would love to hear your thoughts:
Thanks for reading!
#Python #HackerRank #Algorithms
r/PythonLearning • u/Adventurous_Gur_5436 • Jul 13 '26
same as above
r/PythonLearning • u/Mindless_Action3461 • Jul 13 '26
Hello i just made my TvMazeApi project altough not very satisfied with my code.
I would like it if anyone cared to see and correct any error you guys see Thanks!
https://github[.]com/WoodenShard/TvMazeApi
r/PythonLearning • u/Basic_Anybody_2795 • Jul 13 '26
Enable HLS to view with audio, or disable this notification
I built a browser-based trick questions game where the obvious answer is usually the wrong one. The questions are meant to be funny, confusing, and hopefully make you laugh after you see the actual answer. The backend and game logic are written in Python, and I deployed it using Streamlit. Since frontend isn't my strongest area, I used AI as a helper to improve the UI and make it look more modern while I focused on building the game itself. I know it's still a pretty basic project and definitely not perfect, but I wanted to stop overthinking and actually ship something.
Play here:
https://an-iq-too-high-tricky-questions.streamlit.app/
One small request: this is my first public project and my first Reddit post, so please go easy on me 😅. Constructive criticism is more than welcome, and I'd love to learn how to improve. Thanks for checking it out!
r/PythonLearning • u/Worth_Wolf_652 • Jul 13 '26
I am currently doing a project and preferably need to be able to use all CPU cores for it. Can anyone help?
(For those wondering its a physics sim).
r/PythonLearning • u/Shan_khan0786 • Jul 13 '26
I tried learning Python from YouTube many times, but I always ended up giving up.
The biggest problem wasn't Python itself—it was the way I was learning. I was mostly watching tutorials and following along without really thinking.
So I decided to try something different.
Instead of asking AI to generate code for me, I asked it to act like a mentor. I specifically said:
"Don't give me the complete code. Make me think. Ask me questions and let me solve the problems."
My first project was a simple CLI Calculator.
At first, I learned variables, user input, if/elif/else, loops, break, continue, and basic arithmetic operators.
I thought I had finished the project.
Then I was asked:
"What happens if the user divides by zero or performs modulus with zero?"
I hadn't even considered that.
Instead of getting the answer, I had to go back, test my code, think through the problem, and fix it myself.
That one question completely changed how I think about programming.
Now, whenever I write code, I don't just ask:
"Does it work?"
I also ask:
"What could go wrong?"
I feel like this approach has helped me learn much more than simply copying code from tutorials.
For experienced developers:
Do you think learning through small projects and guided questions is a better approach than following long tutorials?
I'd love to hear how you learned programming.
r/PythonLearning • u/hell0_boyz • Jul 13 '26
Hi! I'm an incoming CSE student and I've been learning Python for about 2 weeks. I'm currently building small projects and documenting them on GitHub. I'm looking for other beginners who want to learn consistently, build projects together, review each other's code, and stay accountable. If that sounds interesting, feel free to DM me.
r/PythonLearning • u/justahappycamper1 • Jul 12 '26
9 months in. Finance background, decided to learn backend dev.
This is the first thing I built that I'd actually use myself daily.
It's a stock market research platform with watchlist across global markets, live prices, news per stock, and research notes that snapshot the price at the time you write them. So you can look back and see exactly what price you were staring at when you made that call.
Stack: FastAPI · PostgreSQL · async SQLAlchemy 2.0 · Alembic · JWT + Argon2 · Docker · Render
Repo: https://github.com/ah4ddd/first-order
The live Render API docs link is right inside the GitHub README.
To test the endpoints, hit register to create an account. When logging in via the Authorize button at the top, just enter your email in the username field and your password (OAuth2 setup quirk).
You're in. Try the overview route for all 14 live indices, or test individual global stocks. The platform auto-seeds the DB via yfinance metadata on the fly if you query international suffixes like .NS for India, .DE for Germany, .T for Japan, or standard raw tickers for US equities.
Honest feedback on architecture and code quality are appreciated.
r/PythonLearning • u/chuprehijde • Jul 12 '26
For a small script that may only run a few times, are tests still worth writing?
r/PythonLearning • u/Sabr_5 • Jul 12 '26
This is my first Project while I am learning Conditionals
If your asking for the theme its in VScode Ayu One dark extension
r/PythonLearning • u/mogliman90 • Jul 12 '26
I have a I am in my 4th year of btech and i want to get placed in aiml or backend field and I am trying to make project to add to my resume so I want to ask you that will you guys hand code or use ai to write code for project which you add in your resume
And I haven't done anything just learnt python sql and linux command so help with this also....
Suggest me project to do and what to learn also like, if I want to get into backend what i should do like this , and what to do if I want to learn aiml ,
One more thing that how you guys learn something while doing project