*args is used to pass variable number of arguments that is when the number of arguments not known beforehand. But how it is working when it is passed as a parameter to a function?
In the code how arg1 identifies the first element of the tuple and not the second one and in the similar way arg2 points to the second element of the tuple not the first or third one .Why?
I saw a plenty of resources in the internet which explains *args and *kwargs but none of them explains how do they work when passed as a parameter.
def some_args(arg_1, arg_2, arg_3):
print("arg_1:", arg_1)
print("arg_2:", arg_2)
print("arg_3:", arg_3)
args = ("Sammy", "Casey", "Alex")
some_args(*args)