0
explication ?.
def add(x, y): return x + y def do_twice(func, x, y): return func(func(x, y), func(x, y)) a = 5 b = 10 print(do_twice(add, a, b))
2 Answers
+ 2
add(add(5,10),add(5,10))
# add(5, 10) is 15
add(15 , 15)
# ouput: 30
0
The result is 30
add(add(5,10),add(5,10))