0

Functions

Where does add come from 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))

18th May 2020, 3:31 AM
Zach Janzen
1 Answer
18th May 2020, 3:42 AM
Kiran Deep Naidu
Kiran Deep Naidu - avatar