parameter

A name in a function definition that receives the value of an argument each time the function is called.

In more detail

Parameters are local variables of the function, filled in at the moment of the call. A function with several parameters receives arguments in order. A default, as in end='\n', makes a parameter optional.

Example

def sumProblem(x, y):
    print(x + y)

Related terms

Taught in

References

Certification courses