I'm learning Python and I'm having trouble applying logical thinking when trying to solve basic exercises or homework. Every time I try to write code, I end up using random solutions that don't make sense or don't follow Python syntax. I feel like I'm missing the logical thinking part that programming requires.
For example, when I’m asked to write a simple loop or function, I panic and try to guess the solution instead of understanding the structure.
Can anyone suggest specific techniques, resources, or exercises that can help build logical thinking and structured problem-solving in Python?
Thanks in Advance!!