Question
In Python, functions are first-class objects — they can be passed as arguments to other functions.
Write a function my_fun_plus_one(f, x) that takes a function object f and a number x, and returns f(x) + 1.
Test it with:
np.sin at x = pi/2
np.cos at x = pi/2
np.sqrt at x = 25
What does "first-class function" mean in Python?