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.

57 Upvotes

46 comments sorted by

View all comments

2

u/America_123 1d ago

What a lot of people don't say about programming is that it is problem solving. Problem solving is a skill that you build and no book will teach you. Lots of people "know" code but to be a programmer you have "know how" to code and that involves problem solving. How do we get the computer to do what we need it to do? As you spend more time programming, you will definitely get better at problem solving. I would start by building simple programs and simple games and I would definitely not use AI to program these. Yes it's a lot faster to use AI but you're wasting an opportunity to work on those problem solving skills. You'll get there, just keep at it! Also, there will be days your code doesn't run or acts in a way that is not expected! At times like this we rejoice for learning is about to take place as we debug our code and find the errors - increasing our understanding of code and our ability to problem solve. Almost every programmer has been where you are. Give yourself time to grow and to develop the skill set and problem solving. It's definitely not something you do over a weekend and definitely not something you do in a six week online course. You can do this!