0

Can someone please explain how does the second function work in this code

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))

16th Apr 2019, 8:57 AM
Paul Louis
Paul Louis - avatar
2 Réponses
0
Thank you very much
16th Apr 2019, 9:04 AM
Paul Louis
Paul Louis - avatar