Answers for "An example of using lambda"

0

An example of using lambda

def myfunc(n):
  return lambda a : a * n

mydoubler = myfunc(2)

#This prints 22
print(mydoubler(11))
Posted by: Guest on October-01-2021

Python Answers by Framework

Browse Popular Code Answers by Language