Python Programming - Lambda Functions - Discussion

Discussion Forum : Lambda Functions - General Questions (Q.No. 15)
15.
Which of the following is a valid reason for using a regular function instead of a lambda function?
When defining a function for a short, one-time task
When the function requires multiple expressions or statements
When the function is passed as an argument to map()
When the function is used for filtering elements based on a condition
Answer: Option
Explanation:
Regular functions are more suitable when complex logic, multiple expressions, or statements are needed, as they can span multiple lines of code.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.