
Brendan V. answered 05/08/19
Math, science, and programming tutor
A single * will swallow up any remaining non-keyword arguments and pass them as a list for the function. ** will do the same thing for keyword arguments. Consider the following example
The output of the above command will be
This allows you to define functions that take a variable number of arguments.