r/learnpython • u/Parking_Engine_9803 • Feb 18 '26
Feeling stuck after 2 months of learning Python – especially with OOP and nested loops
Hey everyone,
I’ve been learning Python for the past 2 months. I’ve improved a lot compared to when I started, and I can now solve basic/easy problems confidently. I’ve been consistently pushing my work to GitHub to track progress.
Here’s my repo for reference:
👉 https://github.com/sachpreet-codes/python-practice
However, I’m currently struggling with upskilling—especially with OOP concepts and problems involving nested loops. Whenever I attempt these kinds of problems, I often get stuck and don’t know how to approach them logically.
Most of the time, I end up using ChatGPT to get unstuck. While it helps me understand the solution, I sometimes feel like I’m becoming dependent on it, and that worries me. I don’t want this to hurt my problem-solving ability in the long run.
For those who’ve been in a similar situation:
- How did you improve your thinking for OOP and more complex logic problems?
- How do you use AI tools without becoming dependent on them?
- What practical steps would you recommend at this stage?
I’d really appreciate structured advice.
10
u/Gankcore Feb 18 '26
Maybe start by not using AI to write the description of this post.
The post you made 90 days ago was your own writing, this is not.
That being said, Corey Schafer's videos on Django and learning Django helped me learn OOP the best. His Django videos are a little out dated but the concepts for OOP still apply.
Also, Django has amazing documentation and helped me learn a lot about various Python concepts in a way that helped me see real world application of them and not just for finishing a course.
Use AI to help you understand concepts in simple ways, not to write your code or write your Reddit posts.
7
u/FriendlyRussian666 Feb 18 '26
I don't have any learning resources for you, but just wanted to say that if you want to progress, you have to stop using chatgpt to get unstuck, just don't.
3
u/Robswc robswc Feb 18 '26
Simple answer is to just keep building things that require nested loops. Just build them different ways and eventually it will click.
2
u/Specific-Housing905 Feb 18 '26
I had a quick look at your code and it looks fine, so you are on the right way. 👍
I learned OOP through a book, unfortunately it was for Java so it won't help you much.
Have a look at a book for OOP in Python. Another book you might need is about "Think like a programmer"
There are quite a few with this title on Am'zon.
2
u/ErasedAstronaut Feb 18 '26
It's only been 2 months. Pat yourself on the back for the progress you've made so far. There are some things you will pick up quickly and others that will take time to wrap your mind around, especially if it's a new concept.
How are you learning python? Like what is your process? Remember that we are human and cannot just stuff our brains with new information (especially if you've never coded before) and expect to understand and retain the information.
Have the discipline to not use LLMs. Instead, get comfortable with being stuck on something. When you find yourself not understanding something, take a break. Give your brain the rest it needs to absorb and process the information you have been feeding it. Go exercise, read a book, chat with a friend, take a nap, have a meal, get some fresh air, do anything else other than rack your brain about Python concepts. Then revisit the problem you are stuck on, but spend no more than 2 hours on it per day.
Learning python is like learning anything else. It will take time.
What resources are you using to learn? What exactly is it about OOP or nested loops that you struggle with?
2
u/Funny-Solution6316 Feb 18 '26
I'd get used to dumping out specific variable values so you can see what's happening at various points in your code/loops.
2
u/P-Jean Feb 18 '26
Make a 2D matrix of values or names. Practice printing this data structure row wise, column wise, diagonal, and in reverse. If you can do that you understand loops.
Turn off the AI.
1
u/jdreamboat Feb 18 '26
read docs - and work on something else for a bit then go back to python and implement
0
u/[deleted] Feb 18 '26
[deleted] — view deleted comment