Easy
Functions as Arguments
Write
apply(f, x) returning f(x). Read a number and print apply(abs, x), apply(str, x) + '!' and apply(lambda v: v * v, x) on three lines.Input
One integer.
Output
Three lines.
Sample 1
Input
-4
Output
4 -4! 16
Sample 2
Input
0
Output
0 0! 0
Output appears here