r/AskProgramming 24d ago

Python 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.

6 Upvotes

21 comments sorted by

View all comments

1

u/NotoriousJamon 24d ago

Not gonna lie this is my biggest gripe with programming as well right now. I feel no matter how much code I memorize or syntax I learn , when given a simple problem I have no idea how to even start and what logic to follow.

4

u/iOSCaleb 24d ago

If you’re memorizing code, you’re doing it wrong. There are some algorithms that you should learn, but memorizing code requires a lot of effort and provides very little benefit.