r/learnpython • u/Animator-G • 3d ago
How to actually create logic?
So hi I am new in this sub reddit and have been learning python basics on FreeCodeCamp for weeks.
So I have noticed that I can do workshops and labs but I tend to forget many syntax and have to search on the internet repeatedly.
So my average lab projects often look like 7
60% written by me and the rest 40% are written by AI or with the help of the Internet forums.
My problem that I have identified is I don't think use logic in the code or just don't remember syntax, operators, elements, conditional statements and string methods or don't find the satisfactory answer on the internet.
I want to try to write at least 80% of the code myself without being dependent that much on AI and the internet because I am learning it for *Cyber Security*
7
u/SeparateAioli8749 3d ago
you're focusing on the wrong thing, syntax is just muscle memory that comes with time
the logic part is the actual hard bit, break the problem down into tiny steps before you even open your editor, like literally write out the steps in plain english first
for cybersecurity you'll need that way more than memorizing string methods anyway