+ 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

20th Dec 2021, 10:53 PM
Maura Sateriale
1 Respuesta
+ 2
Actually it's a tuple, not a list.
20th Dec 2021, 11:21 PM
Simon Sauter
Simon Sauter - avatar