I'm new to python and programming in general. I want to know how to use a tuple as the argument of a function
I've been using
I'd like to do something like def function(t), where t is a tuple and I can call function(1,2,3) for example. Is this possible?
I've been using
def function(a, b ,c): tup = (a, b, c)but this limits the tuple elements the amount of arguments I put in the function definition.
I'd like to do something like def function(t), where t is a tuple and I can call function(1,2,3) for example. Is this possible?