r/PythonLearning • u/JournalistHot3749 • Aug 24 '25
My first code
First time coding
any ideias or ways to improve it?
r/PythonLearning • u/JournalistHot3749 • Aug 24 '25
First time coding
any ideias or ways to improve it?
r/PythonLearning • u/Candid_Shelter1480 • May 13 '25
I just had to find a place I could truly just kinda brag for a second.
For months, I have been struggling. Failed script after failed script. But today… I FINALLY!!!! FINALLY ran a successful script that can repeatedly produce exactly what I need at my company!
It did everything I needed! Literally to perfection! Took hours of failure after failure… error after error…
Just wanted to find some people who probably have felt my pain before. lol came home and was like jumping up and down telling my fiancée who was like “ummm good babe!” lol but she doesn’t know haha.
Anyways! Thanks for reading! Haha
r/PythonLearning • u/Kiriyuma7801 • Dec 10 '24
r/PythonLearning • u/ihorrud • Apr 16 '26
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
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/SweatyAd3647 • Oct 04 '25
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/Strange-Dinner-393 • Oct 03 '25
plz explain to me how this code works🙏🙏🙏🙏
r/PythonLearning • u/Away-Kaleidoscope143 • Jun 02 '25
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
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/Khaoula_17 • Sep 07 '25
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
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
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/HammadBuilds • 16d ago
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 • Oct 19 '26
How can I learn Python and master it without those paid websites to practice ? + best YouTube channel for that?
r/PythonLearning • u/[deleted] • Mar 23 '26
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
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
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
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
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/Reh4n07_ • Oct 26 '25
r/PythonLearning • u/Glad_Friendship_5353 • Oct 04 '25
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.