Aug-17-2019, 12:09 AM
(This post was last modified: Aug-17-2019, 02:16 AM by ichabod801.)
I just wrong across this "anonymous function" named lambda and have a quick question.
Why am I getting the lambda error message with this code:
Why am I getting the lambda error message with this code:
r = lambda x, y: x * y r(12, 3) print(r) <function <lambda> at 0x00000199699B5168>but not with this code (where I assign the arguments to a variable):
r = lambda x, y: x * y multiply_it = r(12, 3) print(multiply_it)