nested lambda

Question

Write a nested lambda function to multiply two numbers.

solved 0
YashikaKhurana 4 years 2 Answers 1420 views Master 0

Answers ( 2 )

  1. def multiply(x):
    return lambda y: y*x

    Best answer
  2. t=lambda x:lambda y:y*x
    print(t(10)(20))

Leave an answer

Browse
Browse