+ 1
Functions as Objects
What can I put in the space to complete? def square (x): return x*x def test(func, x): print (func(x)) test( ______, 42)
3 Answers
+ 2
Yes. That's it.
test function calls square function with 42 argument with func as alias name..
+ 3
What is the test function expecting as first argument?
What is purpose of square function? Think again.
+ 1
test(square,42) đ