Python does have a special function called filter(). It is a built-in function that takes two arguments: a function and an iterable. The filter() function applies the given function to each item in the iterable and returns an iterator containing only the items for which the function returns True.