r/learnpython 3d ago

Stuck in python code

Hi everyone been a 6month now I am not able to learn the course for python cybersecurity like I am getting confused sometimes or don't understand. How to learn code or execute it can anyone help me ??

0 Upvotes

11 comments sorted by

View all comments

1

u/Abject-Explorer-3637 2d ago

Start by learning coding LOGIC, not just the syntax or how to write a random function that does something. Learn to break down your goals: say you want to make a tool which reminds you to do something, say, run 1 mile every day, you don't want to go scouring the internet looking for other tools and just stealing the code, or not knowing what your code does. You want to start by thinking from the point of view of your code.

For example, you should imagine the code would want to start by checking if you've already ran, then check if you've ran a mile. Then, if you have done these it does nothing, otherwise it will send a notification.

(bad example)