Video 8: Functions (page 7 of 9) |
A parameter is a variable which we use in the function definition. It is a “handle” that allows the code in the function to access the arguments that get passed when the function is called.
num1 is the parameter in the following example of a fruitful function. We do not have to specify the data type of our parameters when defining them, which is similar to variable assignment in Python.