Answers for "Uso de lambda"

0

Uso de lambda

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

mydoubler = myfunc(2)
mytripler = myfunc(3)

print(mydoubler(11))
print(mytripler(11))
Posted by: Guest on June-02-2021

Browse Popular Code Answers by Language