first code cannot run as myfunc has not been defined, to make it function use:
def foo(n): return lambda a : a * n bar = foo(3) print(bar(11))Second code myfunc not defined, and passing only 1 argument where two are required.