Code Lab

Decorators

def print_args(function): def wrapper(*args, **kwargs): print('Arguments:', args, kwargs) return function(*args, **kwargs) return wrapper @print_args def write(text): print(text) write('foo')
:
Input
Input Data (stdin):
Output
Arguments: ('foo',) {}
foo
Lint
Position Message Level
12:1 expected 2 blank lines after class or function definition, found 1 info