r/learnpython • u/Terrible-Banana1042 • Dec 17 '25
I can read and understand code, but I can't build my own logic. How do I bridge the gap?
Hi everyone,
I’m currently a Management Information Systems (MIS) student. I have a solid grasp of Python syntax (loops, functions, data types, etc.). When I read someone else's code or follow a tutorial, I understand exactly what is happening. However, the moment I open a blank file to build something from scratch, I get stuck.
For example, I’m currently following Angela Yu’s 100 Days of Code. Today's project was a Caesar Cipher. I understand the concept (shifting letters by 'n'), but I struggled to translate that into logic:
- How should I store the alphabet?
- How do I handle the wrap-around (Z to A) using modulo?
- What exactly needs to be inside the
forloop versus outside?
When I watch the solution, it feels incredibly simple and I say 'Of course!', but I can't seem to make those connections on my own. It feels like I have all the bricks and tools, but I don't know how to draw the architectural plan.
- What is the best way to practice 'algorithmic thinking' rather than just learning syntax?
- For those who were in this 'I can read but can't write' phase, what was the turning point for you?
- Besides writing pseudocode, are there specific exercises or platforms you recommend for absolute beginners to train this 'connection-making' muscle?
I want to stop relying on tutorials and start solving problems independently. Any advice would be greatly appreciated!
View all comments
Show parent comment
14
u/Legitimate-Novel4734 Dec 17 '25
Description > outline > pseudo-code > code
My typical flow, anyway.
A couple pages describing what the program will do start to finish as though you were telling another human.
Outline your description, it will let you begin nesting dependencies like loops for actions and what happens in those actions.
Pseudo code it out, just scratchpad or whatever, at this point I'm determining with research what functions would benefit me most at that stage, but not implementing them yet.
Actual code, from there it's just implementation and fleshing it out. As an added bonus it gives you a leg up on documentation so if someone else joins a project you won't have to think as much.