+ 1

Can somebody explain the output of the code below?

def at(func, arg) : return func(func(arg)) def af(x): return x + 5 print(at (af, 10))

2nd Jun 2017, 7:03 PM
Abhishek Dubey
Abhishek Dubey - avatar
3 Respostas
+ 5
Does this help? at(af, 10) af(af(10)) af(10 + 5) af(15) 15 + 5 20
2nd Jun 2017, 7:37 PM
Igor B
Igor B - avatar
0
Thanks Igor.
2nd Jun 2017, 7:41 PM
Abhishek Dubey
Abhishek Dubey - avatar
0
😊
2nd Jun 2017, 11:06 PM
pejman mousaei
pejman mousaei - avatar