defIntermediate Playground

Defines a new function or method

Python Playground
Output
Click "Run" to execute your code

*args captures extra positional arguments as a tuple. **kwargs captures extra keyword arguments as a dict. Together they let you write wrapper functions.

Challenge

Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?