When learning to code you must build your fundamentals.
If you are coding different functions and arguments but can’t explain why, you don’t own the content.
Building a strong foundation means memorizing definitions and knowing what the code does.
Here are some foundations of python you’ll need to know.
In python, there are certain letters that are highlighted in colors. That means that there is a value or power to those specific words. For example, see def in python below.

Here def serves an example of a function. However, to execute your function, make the action take place, you must “call” the function.
Another concept is “loops“. This is for iterations in a sequence or repeating something multiple times.
Build your understanding of fundamentals, in this case knowing what code does by familiarizing yourself with the definitions.