<filename>python/arbitrary_arguments.py
# https://www.programiz.com/python-programming/function-argument
# Sometimes, we do not know in advance the number of arguments that will be 
# passed into a function.Python allows us to handle this kind of situation 
# through function calls with arbitrary number of arguments.

In the function definition we use an asterisk (*) before the parameter name to denote this kind of argument. Here is an example.

def greet(*names):
    """
    This function greets all the person in the names tuple.
    """

    # names is a tuple with arguments
    for name in names:
        print("Hello", name)

greet("Monica", "Luke", "Steve", "Jonh")

<filename>python/arbitrary_arguments.py
# https://www.programiz.com/python-programming/function-argument
# Sometimes, we do not know in advance the number of arguments that will be 
# passed into a function.Python allows us to handle this kind of situation 
# through function calls with arbitrary number of arguments.

In the function definition we use an asterisk (*) before the parameter name to denote this kind of argument. Here is an example.

def greet(*names):
    """
    This function greets all the person in the names tuple.
    """

    # names is a tuple with arguments
    for name in names:
        print("Hello", name)

greet("Monica", "Luke", "Steve", "Jonh")

# https://www.programiz.com/python-programming/function-argument # Sometimes, we do not know in advance the number of arguments that will be # passed into a function.Python allows us to handle this kind of situation # through function calls with arbitrary number of arguments. This function greets all the person in the names tuple. # names is a tuple with arguments