LearnPy Hub
← Decorators problems
Medium

Keep the Name

Write a decorator using functools.wraps. Decorate def area(w, h) (docstring 'Rectangle area.'). Print area(w, h), then area.__name__ and area.__doc__.

Input

Two integers.

Output

Three lines.

Sample 1

Input
3
4
Output
12
area
Rectangle area.

Sample 2

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