← Code LabPython0/50 solved · 0%
Functions · medium

22. Decorators

Wrap a function to add behavior.

Write a decorator `double_result(fn)` that wraps `fn` and returns twice the wrapped function's return value.
Required in your answer: def wrapperreturn wrapper