Easy
Plus One Decorator
Write a decorator
plus_one that adds 1 to a function's numeric result. Decorate square(x) and print square(n) for the input n.Input
One integer.
Output
One integer.
Sample 1
Input
3
Output
10
Sample 2
Input
0
Output
1
Output appears here