Python Programming - Generators - Discussion

Discussion Forum : Generators - General Questions (Q.No. 37)
37.
How does the itertools.filterfalse() function behave when used with a generator?
It filters elements that evaluate to False in the generator
It filters elements that evaluate to True in the generator
It stops the generator after one iteration
It interleaves values from different generators
Answer: Option
Explanation:
itertools.filterfalse() filters elements in the generator that evaluate to False based on the provided function.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.