Arguments and Parameters for Functions


Here I wrote about arguments and parameters.

Arguments and parameters are different for functions.

Argument

An argument is the expression between parenthesis in function call. An argument is defined outside the function.

An argument is an expression, so the argument of print(1 + 1) is 1 + 1, and the argument of print(2) is 2, in Python 3.6.

Parameter

The variable to receive the evaluated value of the argument is parameter. The parameter is valid inside the function.

In both expressions print(1 + 1) and print(2), the parameter will holds the same value, 2.

When the function def function(value): is defined in Python 3.6, the parameter is value.

In addition, a function in Python 3.6 can have parameters up to 255. (I wrote the maximum numbers in some languages in the article, The maximum number of parameters in several programming language.)