Myntra Interview Question | Write a lambda function that multiplies two arguments

Question

in Python

in progress 0
TheDataMonk 55 years 4 Answers 1342 views Grand Master 0

Answers ( 4 )

  1. mul_2 = (lambda x,y : x*y)
    print(mul_2(2,4))

    #output
    8

  2. multiply = (lambda x,y : x*y)

  3. function=(lambda x,y:x*y)
    ans=[1,2].map(function)

  4. example=(lambda x,y:x*y)
    example(2,3)

Leave an answer

Browse
Browse