Any number of parameter : Function Tuple Parameters : Function PYTHON examples


PYTHON examples » Function » Function Tuple Parameters »

 

Any number of parameter


Any number of parameter: turn parameter into a tuple


def f(*args): print args

f()

f(1)

f(1,2,3,4)

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Function
» Function Tuple Parameters