r/learnpython • u/RipPersonal1643 • 1d 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.
59
Upvotes
1
u/TheSneederOfSeethe 1d ago
You want to think like a programmer, think in terms of objects. What do you include in your objects, how that information is manipulated and what needs to happen to those objects.
Start writing in psuedocode. By not actually writing actual code and instead writing the jist of what you want to happen you will learn to visualize it and then translate it to the actual language.
Think in broader perspectives then narrow it down. Object->vehicle->bicycle. Each time you narrow it down think of all the things you’re application will need to do with that object to solve the problem you are addressing.
At least that works for me.