in the function definition (line 1)
when you call the function on line 7, you pass
There are positional and keyword parameters/arguments. check the links for more details. In this case
read our tutorial on functions: https://python-forum.io/Thread-Basic-Functions
also glossary for parameters and arguments
food
is a parameter.when you call the function on line 7, you pass
fruits
as arguments to the function. That is the actual value of food in this particular call of the function.There are positional and keyword parameters/arguments. check the links for more details. In this case
food
is positional parameter.read our tutorial on functions: https://python-forum.io/Thread-Basic-Functions
also glossary for parameters and arguments
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs