Python


#1

def biggest_number(*args):

why do we use (*) symbol with args in above command???


#2

because * indicates that all arguments (at function call) which do not have an parameter should be part of the args tuple, you can read more about args and kwargs here:

which is very useful if you have unknown amount of arguments at function call.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.