r/PythonLearning • u/Kiriyuma7801 • Dec 10 '24
r/PythonLearning • u/ihorrud • Apr 16 '26
Are there any good open source Python projects to learn from?
As I learn Python I know that the main way you learn something is by doing, I agree, but I also think that reading someone else's code is also crucial, especially if it's really good idiomatic code. Are there any OS Python projects you could recommend reading and be inspired by how I should write the code?
r/PythonLearning • u/MeribeHenry • Mar 24 '26
DAY 01 OF LEARNING OOP IN PYTHON
Classes: These are blueprint/template used to create objects. Think of it like a video template in capcut.
Objects: These are instances of a class i.e. the product from a class. From our example, object is like the video made using the template from capcut.
Attributes: These are properties of the object, what the object have, how it looks etc. From our example attributes would be maybe the person in the video, name of the video, if it landscape or portrait etc.
Methods: These are functions/action an object can perform. So from our example the video can play, pause, rewind etc. which is an action.
r/PythonLearning • u/Strange-Dinner-393 • Oct 03 '25
somebody help mešš
plz explain to me how this code worksšššš
r/PythonLearning • u/Away-Kaleidoscope143 • Jun 02 '25
Looking for a coding partner
Hi everyone, I'm looking for a coding partner ā someone who can learn with me by solving coding problems and working on projects together. I'm going to graduate in July, and I want to focus on learning Python. If anyone is interested in joining me, feel free to connect
r/PythonLearning • u/[deleted] • Oct 15 '25
A simple programme for converting currency
I have written this program by sitting at night, I had made this program very logically, my output would have been like this, but I am making a mistake that if I am giving an integer value then that value is getting printed multiple times, I am not able to understand, I am new to python, I have just started learning python
r/PythonLearning • u/SweatyAd3647 • Oct 04 '25
Showcase Beginner challenge: write a Python script that generates strong, random passwords.
Beginner challenge: write a Python script that generates strong, random passwords. Itās secure, practical, and definitely #pythonfun for Python for beginners. Post your code for feedback!
r/PythonLearning • u/Khaoula_17 • Sep 07 '25
Today I learned how to use input() and print() in Python š
Iām still a beginner, learning Python step step. Today I practiced using input() and print(). Feeling excited about my progress! What do you recommend as a simple beginner project to try next?
r/PythonLearning • u/OneWayVector • May 25 '25
Is it okay to be learning python with AI?
I have been learning Python for over a month with the help of AI. Every day, I spend 2ā3 hours taking lessons on W3Schools and use AI to help me understand each line of code with detailed explanations and examples. It helps me a lot by making me understand faster. I also work on simple projects I always search on YouTube for tutorials on how to make them and then try to create my own. When I encounter a bug, I donāt have anyone to ask for help, so if Iām stuck on a bug for 20 minutes, I use AI to find and explain how to solve it.
r/PythonLearning • u/Owlbuddy121 • Feb 25 '26
If Redis is single-threaded, how does it actually hit millions of RPS?
Iāve been diving into Redis architecture lately, and the "single-threaded" nature of it feels like a paradox when you look at its performance benchmarks.
I understand that it avoids context switching and lock contention, but Iām struggling to visualize how it handles massive concurrency without getting choked by a few heavy requests. Is it all down to the event loop (IO multiplexing), or is there more "magic" happening under the hood with how it handles memory?
Would love a breakdown of why this design choice actually makes it faster rather than being a bottleneck.
r/PythonLearning • u/[deleted] • Mar 23 '26
Day 11: Added an analytics engine to my terminal dashboard ā and ended up teaching my approach on Google Meet
Day 11 of learning Python from scratch. B.Tech Electronics, not CS.
Today I finished Stage 3 of LifeOS ā a personal terminal dashboard I've been building this week.
What Stage 3 does:
Reads the entire log file and builds a dictionary of total hours per day
Counts every activity across all entries and finds the most frequent one using
max(dict, key=dict.get)Calculates streak by walking backwards from today using
timedelta
The trickiest part was the streak logic ā the data ended on March 20 but today is March 24, so streak showed 0. Took me a minute to realise the gap in dates was breaking the count, not the code.
Unexpected thing that happened ā someone from my last post reached out and we jumped on a Google Meet. I ended up explaining my whole learning system: use AI for concepts not code, build your own logic, fix your own bugs.
Day 11. Still going. š
r/PythonLearning • u/Can0pen3r • Oct 27 '25
Showcase 2 certs down! š
I know it's SoloLearn so they don't actually hold any weight like a diploma/degree or whatever but, I'm still pretty ole proud of myself at the moment š
r/PythonLearning • u/djk162 • Jun 30 '25
Advice for Beginners: What do you wish you new as a beginner when you started Python coding?
Share what you wish you knew as a beginner when you started Python coding? Share those hacks to save a life. I have found the language quite complex.
r/PythonLearning • u/CoachElectrical4611 • Jun 11 '25
Need to start learning Python -- need advice!
Hi! I'm going to be taking a Computer Science degree, so I want to start learning Python this summer as fast and comprehensively as possible.
I will only be self-studying, so I need advice on where to start and what learning materials are available online. I'm also stumped on how I should schedule my study sessions and how I should organize the lessons. All in all, I'm just overwhelmed, so I really need some advice.
Any response would be appreciated. Thanks!!
r/PythonLearning • u/TU_Hello • Jun 06 '25
Calculator
Hello everyone After creating Guess Number, I decided to create a calculator to practise what I had learnt. I would be happy to hear your thoughts on my code and am open to any suggestions.
r/PythonLearning • u/HammadBuilds • 11d ago
What Python concepts took you the longest to understand as a beginner?
I've been learning Python and noticed that understanding the syntax is often the easy part. The real challenge comes when trying to apply concepts in actual projects.
I'm curious to hear from other Python learners:
Which concept was the hardest for you to understand?
Did you struggle more with OOP, decorators, APIs, async programming, or data structures?
What helped you finally understand it?
If you could give one piece of advice to someone learning Python today, what would it be?
I think sharing these experiences could help beginners avoid some common learning roadblocks.
Looking forward to hearing your experiences!
r/PythonLearning • u/Key_Equivalent_2539 • 28d ago
Best way to learn Python for free?
How can I learn Python and master it without those paid websites to practice ? + best YouTube channel for that?
r/PythonLearning • u/Reh4n07_ • Oct 26 '25
Help Request Could someone help me understand why my age guesser isnāt functioning correctly?
r/PythonLearning • u/Glad_Friendship_5353 • Oct 04 '25
Showcase Open Source Python LeetCode Practice Generator: 100+ Problems with Beautiful Visualizations for Local IDE Development
I've developed anĀ open source Python packageĀ that generates complete LeetCode practice environmentsĀ locally in your IDE, featuring beautiful dataĀ structure visualizations andĀ comprehensive testing.
Technical Features:
100+ curated problemsĀ from Grind 75, BlindĀ 75, NeetCode 150 collections
Professional data structureĀ visualizationsĀ using Graphviz and anytree
ComprehensiveĀ test suitesĀ with pytest andĀ 10+ test cases per problem
Modern Python practices: TypeĀ hints, black/isort/ruff linting, Poetry dependency management
CLIĀ tool:Ā `lcpy`Ā command for easy problem generation
Why Local Development?
IDE Integration: Full debuggingĀ capabilities in your preferred environment
Version Control: Maintain a repository of solutions with proper Git workflow
Development Tools: Leverage linting, testing, andĀ code organization tools
Efficiency: Automated boilerplateĀ generation and test caseĀ creation
Quick Start:
pip install leetcode-py-sdk
lcpy gen -t grind-75
cd leetcode/two_sum && python -m pytest

Tech Stack:
Python 3.10+ withĀ modern type hints
Graphviz for data structureĀ visualization
pytest for comprehensive testing
Typer for CLIĀ interface
Poetry for dependency management
Open Source Repository:Ā https://github.com/wislertt/leetcode-py
Docs: https://leetcode-py.wisl.dev/
Blog: https://wisl.dev/blog/leetcode-problem-generator/
I'd appreciate feedback from the Python community on code quality, architecture, or additional featuresĀ that would enhance the development experience.
r/PythonLearning • u/Southern_Highway_852 • Sep 09 '25
What should I do to print the name "Hermione" or "Harry" alone from the number of dictionaries in the code ?
r/PythonLearning
•
u/infinitecoderunner
•
May 27 '25
Discussion Guys I am a complete beginner to python, where can i learn it online for free?
r/PythonLearning • u/Objective-Remove-632 • Oct 09 '26
Do I really need to learn class.
Both function and class give the same output. So why do I need it?