InterviewSolution
Saved Bookmarks
| 1. |
What is lambda in Python? Why is it used? |
|
Answer» LAMBDA is an ANONYMOUS function in PYTHON, that can accept any number of arguments, but can only have a single EXPRESSION. It is generally used in situations requiring an anonymous function for a short time period. Lambda functions can be used in either of the two ways:
|
|