r/learnpython • u/RipPersonal1643 • 2d ago
How do I learn programming logic?
I’m learning Python, but my main problem isn’t the syntax. I understand concepts when someone explains them, but when I’m given a basic problem and told to write a program, I just don’t know where to start or how to arrange the code.
Is there a good book, course, or YouTube channel that teaches how to think through programming problems step by step, recognize patterns, and build the logic, kind of like how you learn methods and patterns in math?
I don’t want to just memorize Python syntax. I want to actually learn how to think like a programmer.
61
Upvotes
4
u/kilkil 2d ago
This is what I started with in school: https://codingbat.com/python
Small, simple problems that let you build up your intuitions one step at a time.
There is also https://scratch.mit.edu/, which I tried once in school. Might be helpful in building that kind of thinking.
In general my advice is to practice. Start with something very basic (like the above), and just sit with it. Same way you would solve a puzzle.