M

Mr. Dubey • 52.30K 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 : Option (A)

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.

Be the first to start discuss.