What is the primary purpose of using lambda functions?
A:
To create anonymous functions
B:
To define functions with multiple parameters
C:
To execute code asynchronously
D:
To create class methods
Answer:A
lambda functions are used to create small, anonymous functions without the need to formally define them using the def keyword. They are often used for short-term, specific tasks where a full function definition is not necessary.
Discuss About this Question.
Ad Slot (Above Pagination)
Install ExamAdept
Fast access — add this app to your device.
To install on iPhone/iPad: tap Share → Add to Home Screen.
Discuss About this Question.