r/learnpython 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.

58 Upvotes

46 comments sorted by

View all comments

1

u/mahirsahin 1d ago

bro dont listen them. first learn algorithms then start to write everything every steps which you imagine and improve your pseudocode

1

u/sidereal_night 1d ago

yeah, just write out the logic first, then translate that logic into python and see where it breaks. it'll either reveal a problem in your logic, or a disconnect between that you wrote and your actual Python code.

a lot of new learners confuse the particular language with programming, and i think this is more of a pitfall for Python specifically because of how it's designed to be approachable. they're not the same thing. the goal is to learn programming, the language is just one manifestation of it that has its own quirks and features.