pass a tuple to a function python code example
Example: how to pass a tuple to a function in python
>>> args = tuple(1,2,3)
>>> def function(a,b,c):
... print(a + b + c)
>>> function(*args) #the star unwraps the tuple
6
>>> args = tuple(1,2,3)
>>> def function(a,b,c):
... print(a + b + c)
>>> function(*args) #the star unwraps the tuple
6