New course! Every coder should learn Generative AI!
Try a free lesson+ 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))
3 Answers
+ 5
Does this help?
at(af, 10)
af(af(10))
af(10 + 5)
af(15)
15 + 5
20
0
Thanks Igor.
0
😊