While defining a function use * with the last parameter that going to recevie arbitrary no. of parameters.
For example:
num1 = 6
num2 = 9
def main(*collect)
print ("num1 = ", num1, "num2 = ", num2, "collection = ", collect)
main(num1, num2)
Output : num1= 6 , num2 = 9, collection = (6, 9)
This is how function works for arbitrary number of arguments.