A decorator that doubles a function's return value.
Define a decorator double that doubles the return value of any function it wraps.
Then decorate a function add(a, b) that returns a + b. Call print(add(3, 4)).
Expected output: 14
Sign in to save your code and track progress across devices.