Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 24)
24.
What is the purpose of the filter() function?
Filters out odd numbers from a list
Filters out even numbers from a list
Filters elements of an iterable based on a function's result
Checks if a variable is of a certain type
Answer: Option
Explanation:
The filter() function is used to filter elements of an iterable based on whether a function returns True or False.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.