Any number of parameter: turn parameter into a tuple : Function Tuple Parameters « Function « Python
- Python
- Function
- Function Tuple Parameters
Any number of parameter: turn parameter into a tuple

def f(*args): print args
f()
f(1)
f(1,2,3,4)
Related examples in the same category