+ 6
It's not quite clear to me. What are these numbers? See the code!
2 Réponses
+ 3
This are called as arbitrary arguments.When we dont know well in advance the number of parameters to be passes,we use arbitrary arguemnts.
first value goes in named_arg ...while rest of the values are wrapped as tuple and passed as *arg.
+ 2
In your function call, function(1, 2, 3, 4, 5), arg is set to 1 and 2, 3, 4, 5 represent args... In the function definition * was used to say that the number of elements in args was not yet known. In this case it will be 4 elements.