What does ** (double star/asterisk) and * (star/asterisk) do for parameters?
In the following method definitions, what does the *
and **
do for param2
?
def foo(param1, *param2):
def bar(param1, **param2):
In the following method definitions, what does the *
and **
do for param2
?
def foo(param1, *param2):
def bar(param1, **param2):