parameter
When defining a function, the pieces of information that the function takes to do its job are called parameters. For example, here:
def add(first, second):
return first + second
first
and second
are the parameters of the function add()
.
When calling a function, the values given to it are called arguments.