Open In App
Related Articles

Python | Functions | Question 4

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

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 18 Jan, 2021
Like Article
Save Article
Similar Reads