Medium
Log Arguments
Write a decorator that prints the function name with its positional and keyword arguments, e.g.
power(2, exp=5), before calling it. Decorate power(base, exp=2).Input
Two integers: base, then exp.
Output
Two lines.
Sample 1
Input
2 5
Output
power(2, exp=5) 32
Sample 2
Input
3 0
Output
power(3, exp=0) 1
Output appears here