0
đ€Question: What will be output?đ€
first = lambda y, x: x*y print(first(2, 1)) # I am losing challenges, cuz of this one Pls let me know the answer
4 Answers
+ 2
first = lambda y, x: x*y
print(first(2, 1))
### this code is equivalent to
def first(y,x) :
return x*y
print(first(2,1))
## and as the function first has y as 1st and x as 2nd parameter...so 2,1 means y us set to 2 and x is set to 1
## hope you understood..
+ 15
Output = 2
0
2 is value for which var x or y in lambda?
0
@ sayan chandra
Thank you for this explanation