Skip to content
Related Articles
Open in App
Not now

Related Articles

Python | Functions | Question 4

Improve Article
Save Article
Like Article
  • Difficulty Level : Basic
  • Last Updated : 18 Jan, 2021
Improve Article
Save Article
Like Article

What is the output of the following program :




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


(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

My Personal Notes arrow_drop_up
Like Article
Save Article
Related Articles

Start Your Coding Journey Now!