Re: Tuples in function argument lists
Steven D'Aprano wrote: > I'm trying to understand the use of tuples in function argument lists. > > I did this: > >>>>def tester(a, (b,c)): > > ... print a, b, c > ... > >>>>tester(1, 2) > > Traceback (most recent call
Tuples in function argument lists
I'm trying to understand the use of tuples in function argument lists. I did this: >>> def tester(a, (b,c)): ... print a, b, c ... >>> tester(1, 2) Traceback (most recent call last): File "", line 1, in ? File "", line 1, in tester TypeError: u
