Python Programming - Lambda Functions - Discussion

Discussion Forum : Lambda Functions - General Questions (Q.No. 23)
23.
How does the filter() function work when used with a lambda function?
It creates a filter object based on the lambda function's condition.
It sorts the elements of an iterable using the lambda function.
It applies the lambda function to each element of an iterable.
It accumulates values from an iterable using the lambda function.
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.