Hopefully this helps a bit.
Firstly, if you have not done the HTML and CSS courses, I would suggest to start there. They are easier languages to start with. This will help you understand some basic concepts that you can use to build on in python. While you certainly can start in python, you may find value in doing those lessons first. It will likely take only a few hours and may help you understand stuff better.
As for other tips:
- Many languages (such as python) have their roots in algebra. Therefore, it can be valuable to brush up on solving algebra equations. The logic of algebra is the basis of the logic of most programming languages. Doing other logic puzzles can sometimes improve your programming skills too.
- Pay very close attention to following instructions and giving very clear instructions. This is another important programming skill. Instructions must be exact. I remember a few classroom exercises that focused on following instructions when I was in high school. They translated well in the world of programming. Some ways to practice this might be doing some logic puzzles in a “Penny” puzzle book or the like. Another way is to buy an inexpensive piece of furniture with “some assembly required” and follow the instructions exactly. The ability to follow logic and explain your own logic flow is a very important programming skill.
- Practice pattern recognition. Especially logical pattern recognition. Sudoku is ok at this, the occasional word search puzzle, and those “find the differences in these two pictures” puzzles found frequently in the comic section of the newspaper can also be helpful.
Those are a few tips. After that knowledge of the terminology can be helpful. Programming terminology can be difficult for native English speakers. As in all languages, knowing the syntax is quite important.
As for your specific question: These are my own personal definitions. I suggest a textbook if these definitions are not sufficient.
- A function is a piece of code that is called and does it’s thing then returns to the program. While some functions can do things on their own most return one or more variables back to where they were called in the program.
- An argument is a variable (or constant) passed to the function. The number of variables required is generally defined by the function being called.
- A method is a bit like a function. It is a way to tell an object to do something. Don’t get too hung up on the exact definition of a method (at this time). The difference between a method and a function is a bit nuanced at the beginning. When you progress further, it will become apparent. Besides I’ve heard programmers use method and function nearly interchangeably in casual discussion (because we know what each other is trying to say).
Part of the important thing to grasp in this particular lesson is that arguments passed to functions can be: integer(s), string(s), float(s), or even another list.
That last part can be hard to grasp.
This part of the exercise is trying to emphasize that. Ignore “There is a list method in Python that you can use for this, but you should do it the long way for practice.” That information is interesting, but, it is off point.
You are to define a function that takes two arguments. The number of items in a sequence of items. (You can’t use the word “list” as one of the variable names as it is a reserved word in Python).
Hopefully you find some value in my explanation. Sorry for the book. It seemed needed to help clarify the definitions.
Have yourself a great day. Keep coding