Easy
Count the Calls
Write a decorator that counts how many times a function is called, stored in
wrapper.calls. Call the decorated square on each input number, then print the call count.Input
One line of integers.
Output
Two lines.
Sample 1
Input
1 2 3
Output
1 4 9 3
Sample 2
Input
5
Output
25 1
Output appears here