Jan-08-2019, 11:51 AM
(Jan-08-2019, 11:30 AM)Larz60+ Wrote: 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.
Cheers for your response. However, I did pick up on the 'myfunc/foo' mistake in my previous post.