Python | Functions | Question 4

What is the output of the following program :

filter_none

edit
close

play_arrow

link
brightness_4
code

y = 8
z = lambda x : x * y
print z(6)

chevron_right


(A) 48
(B) 14
(C) 64
(D) None of the above


Answer: (A)

Explanation: lambdas are concise functions and thus, result = 6 * 8

Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up