LearnPy Hub
← Decorators problems
Easy

Keep the Docstring

Write a decorator using functools.wraps. Decorate a function area(w, h) with the docstring Return the area.. Print area.__name__, area.__doc__ and area(w, h) for two input integers.

Input

Two integers.

Output

Three lines.

Sample 1

Input
3
4
Output
area
Return the area.
12

Sample 2

Input
1
1
Output
area
Return the area.
1
solution.py
Output appears here
Keep the Docstring · Python practice problem · LearnPy Hub