Why does this function passed as an argument to another function return None?
Advertisements def run_my_func(runner, *args, **kwargs): runner(*args) def my_func(name): return name out = run_my_func(my_func, "my name is john", kwargs=None) print(out) Why does this print out None? If I print out the name like so: def run_my_func(runner, *args, **kwargs): runner(*args) def my_func(name): print(name) return name out = run_my_func(my_func, "my name is john", kwargs=None) print(out) I get the… Read More Why does this function passed as an argument to another function return None?