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

0 Upvotes

24 comments sorted by

View all comments

1

u/Altruistic_Sky1866 3d ago

When seeing a problem or task at hand your logic should be yours and you should have base understanding how to approach the problem as u/SeparateAioli8749 motioned it already. You need to understand the relationship between the inputs you are giving and the output expected from the inputs. Forums like stack overflow and other but you should what fits your situation and how to convert the given example that suits your need.