Python supports the creation of anonymous functions at runtime, using a construct called __________

Questions & AnswersCategory: Programming LanguagePython supports the creation of anonymous functions at runtime, using a construct called __________
Geek Boy Staff asked 2 years ago

Python supports the creation of anonymous functions at runtime, using a construct called __________
a. pi
b. anonymous
c. lambda
d. none of the mentioned

1 Answers
Geek Boy Staff answered 2 years ago

c. 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.