The star(*) operator unpacks the sequence/collection into positional arguments. So if you have a tuple and want to pass the items of that tuple as arguments for each position as they are there in the tuple, instead of indexing each element individually, you could just use the * operator.
def multiply(a, b): return a * b values = (1, 2) print(multiply(*values))
This will unpack the tuple so that it actually executes as −
This will give the output −