Slide 19
Slide 19 text
*args and **kwargs
● You can create more flexible APIs with variable number of arguments.
● Essential for decorators and other wrappers.
● If we call the function with additional arguments, args will collect them as a
tuple.
● Likewise, kwargs will collect extra keyword arguments as a dictionary.