0

I dont get why this outputs 16

What is the output of this code? def test(func, arg): return func(func(arg)) def mult(x): return x * x print(test(mult, 2)) The output of this code is 16. I do not get why. I would think it would be 4 because you would do 2 times 2.

17th Feb 2018, 6:45 PM
Raoul Scholtens
Raoul Scholtens - avatar
1 Answer
0
Thank you a lot
17th Feb 2018, 6:57 PM
Raoul Scholtens
Raoul Scholtens - avatar