LearnPy Hub
← Decorators problems
Easy

Announce Calls

Write a decorator that prints calling NAME before the function runs and done after. Decorate add(a, b) and print its result.

Input

Two integers.

Output

Three lines.

Sample 1

Input
2
3
Output
calling add
done
5

Sample 2

Input
0
0
Output
calling add
done
0
solution.py
Output appears here
Announce Calls · Python practice problem · LearnPy Hub