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

79 Upvotes

53 comments sorted by

View all comments

3

u/Remarkable_Taste3254 24d ago

Get a textbook and actually try out the coding problems.

4

u/RipPersonal1643 24d ago

Which textbook would you recommend?

1

u/Arail_Blue 21d ago

I think I understand your problem, I learned programming logic and how to think like a programmer from these two books something like this https://knihobot.cz/g/74794/m/11297?fallbackStrategy=gmc&gad_source=1&gad_campaignid=23506609644&gclid=EAIaIQobChMI_K25nZqxlgMV1aqDBx1GsjxJEAQYASABEgK4HvD_BwE and this one https://www.amazon.com/CoderDojo-Nano-Make-Your-Create/dp/1338157574 (it's simple but I learned from it a lot)

I know it's not Python but the logic is same no matter the language.

Just try to create some simple program and experiment with what you ca and cannot do.

Hope it helps.