r/learnpython • u/Guilty-Question-6557 • 11m ago
5 months into Python: stuck on problem solving and struggling to focus. How do I improve?
Hi everyone,
I've been learning Python for about 5 months. I know basics like data types, lists and classes, but I still can't solve problems on HackerRank. When I get a problem, my mind often goes blank. Sometimes I also struggle to understand the statement in English.
I spent the last 3 years consuming a lot of mindless social media content. Now I find it hard to focus and stay disciplined, and reading documentation or books feels difficult.
I'd like advice on:
- How can I build logical thinking and problem-solving skills?
- How do I get past the "blank mind" stage?
- How can I rebuild my focus and discipline?
- How can I get better at reading documentation and books?
If you've been through something similar, what actually worked for you?
Honest feedback is welcome. Thanks!
•
u/Senior-Ad-6588 2m ago
Stop watching tutorials and start building stuff, start with basic games like number guesser, slot machine etc
•
u/True_Room3265 1m ago
Hey, buddy! 🥹
I think you might benefit from changing your approach a little. Instead of focusing primarily on HackerRank, why not try building a small Python project that solves a real problem you personally care about? 🙂
First, ask yourself:
"What is one repetitive, inconvenient, or frustrating problem in my daily life that I wish I could solve?"
It could be organizing files, tracking expenses, managing study schedules, or automating something you repeatedly do.
Once you've identified that problem, try this:
This is also a practical way to develop logical thinking. You're repeatedly practicing how to decompose a larger problem into smaller, manageable steps.
For HackerRank, I'd suggest writing down the inputs, expected outputs, and a simple example before touching the keyboard. If the English wording is difficult, rewrite the problem in simpler language or translate it first. Understanding the requirements is part of solving the problem.
For focus, start with manageable 20–25-minute sessions. Put your phone away, work toward one specific objective, and take a short break. Gradually increase your reading and coding time rather than forcing yourself into marathon sessions.
For documentation, don't feel obligated to read entire manuals. Start with the section relevant to your current task, run the examples, modify them, and take short notes.
Most importantly, don't measure your progress only by how many HackerRank problems you solve.
Learning Python syntax and learning how to solve problems with Python are related, but different skills.
At five months, you have plenty of room to grow. Build something small, make mistakes, debug it, and improve it. Those experiences are valuable.
I'm curious: What's one real-life problem you'd genuinely enjoy solving with Python? Start there. 😊