+ 5
What does this stuff mean: *args, **kwargs? And why would we use it?
4 odpowiedzi
+ 2
Args is just a name:
He picks up all the arguments that are vague as list:
Example:
def p(a, *b) :
print (a)
print (b)
p( 1,2,3,4,4,5,5)
Result:
1
(2, 3, 4, 4, 5, 5)
+ 2
**kvargs It's just a name but it collects data like dict
+ 1