+ 1
How does return function work in python?
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 Antworten
+ 1
It returns anything you tell it back to the place it was called from.
Please use apropiate tags.