r/learnpython • u/Mundane_Emu_3 • 16m ago
I understand Python concepts, but I just can’t seem to develop the logic to solve problems. How did you overcome this?
I've gone through multiple Python courses and understand the basic concepts like if-else, loops, lists, dictionaries, functions, etc.
However, when it comes to solving problems on my own, I struggle a lot. I can manage very basic questions like addition, subtraction, reversing a string, or checking for palindromes, but beyond that, I just can't seem to figure out the logic.
I understand the concepts and can follow someone else's solution, but when faced with a new problem, I have no idea where to start or how to break it down.
For those who have been through this, how did you develop your problem-solving skills? What kind of practice or approach helped you learn to think logically and solve problems independently?
I'd really appreciate any advice!
•
u/Mundane_Emu_3 2m ago
Thank you so much everyone !
•
u/jbenze 13m ago
Start by writing the problem out on paper and walking through how you would solve it in pseudo code. Break it down into pieces, write it out and THEN translate it into code.
•
u/net_ramblings 13m ago
Klondike bar.
•
u/Narrow_Ad_8997 9m ago
Puzzles... Advent of code starts tonight at midnight EST
•
u/Slothemo 8m ago
This is extremely common for beginners, and it mostly comes down to practice. The more problems you solve, the more patterns you will start to see emerge in how things are solved.
I really recommend a challenge site like Codewars and just work through as many problems as you can to build up the repetition. Once you feel a bit more confident, you can start working on your own mini-projects.
•
u/Lyaw_Lyawa 6m ago
Diagramas de flujo. Es más fácil hacer algo con un paso a paso.