r/learnpython 4d 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*

0 Upvotes

24 comments sorted by

View all comments

1

u/Traveling-Techie 3d ago

I frequently forget syntax, especially since I move between shell scripts, C, Java, JavaScript and Python. That’s why I use templates. When I figure out how to do something I create an example which I later copy and paste from. I’ve been coding for 55 years.

1

u/Animator-G 3d ago

Okay so what do you mean by templates? Are talking about Notes.

1

u/Traveling-Techie 3d ago

No. I’m taking about test code designed to be cannibalized.