+ 2
Just checking
def function(named_arg, *args): print(named_arg) print(args) function(1, 2, 3, 4, 5) So it outputs: 1 (2, 3, 4, 5) So named _arg spits out the first value And args puts out a list
1 Answer
+ 2
Actually it's a tuple, not a list.
def function(named_arg, *args): print(named_arg) print(args) function(1, 2, 3, 4, 5) So it outputs: 1 (2, 3, 4, 5) So named _arg spits out the first value And args puts out a list