What does ** (double star/asterisk) and * (star/asterisk) do for parameters?
Asked 07 September, 2021
Viewed 870 times
  • 55
Votes

In the following method definitions, what does the * and ** do for param2?

def foo(param1, *param2):
def bar(param1, **param2):

23 Answer