Home / Engineering / Problem Solving and Python Programming / Question

M

Mr. Dubey • 51.17K Points
Coach

Q.) Python supports the creation of anonymous functions at runtime, using a construct called

(A) lambda
(B) pi
(C) anonymous
(D) none of the mentioned
Correct answer : Option (A) - lambda

Explanation:
 python supports the creation of anonymous functions (i.e. functions that are not bound to a name) at runtime, using a construct called lambda. lambda functions are restricted to a single expression. they can be used wherever normal functions can be used.

Share

Discusssion

Login to discuss.