1.

Python supports the creation of anonymous functions at runtime, using a construct called __________(a) lambda(b) pi(c) anonymous(d) none of the mentionedI got this question during an internship interview.My question is from Function topic in portion Dictionary, Functions and Built-in Functions of Python

Answer»

The correct option is (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.



Discussion

No Comment Found

Related InterviewSolutions