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

25th Aug 2020, 10:05 AM
Shakibur Rahaman
Shakibur Rahaman - avatar
2 Respuestas
+ 1
It returns anything you tell it back to the place it was called from. Please use apropiate tags.
25th Aug 2020, 10:10 AM
Dragonxiv
Dragonxiv - avatar