Python Programming - Lambda Functions - Discussion

Discussion Forum : Lambda Functions - General Questions (Q.No. 1)
1.
What is the primary purpose of using lambda functions?
To create anonymous functions
To define functions with multiple parameters
To execute code asynchronously
To create class methods
Answer: Option
Explanation:
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.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.