filter
The filter function takes a function and an iterable object as arguments and returns the elements of the iterable that satisfy the function (those for which the function returns the boolean True). We can say that filter filters the iterable leaving only those elements that satisfy the indicated function.