Python Programming - Lambda Functions - Discussion

Discussion Forum : Lambda Functions - General Questions (Q.No. 5)
5.
In Python, what is the purpose of the filter() function when used with lambda functions?
To apply the lambda function to each element of an iterable
To create a filter object based on the lambda function's condition
To sort the elements of an iterable using the lambda function
To map the lambda function to each element of an iterable
Answer: Option
Explanation:
The filter() function is used to create a filter object that includes only the elements from an iterable for which the lambda function returns True.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.