Filter Function Flashcards
1
Q
Filter()
A
Creates a collection of elements from an iterable for which a function returns true
2
Q
How do you write the filter function
A
Filter(function,iterable)
3
Q
What does the function argument do?
A
Defines what aspects to keep