Filter() is a built-in function in Python.
The filter function can be applied to an iterable such as a list or a dictionary and create a new iterator . This new iterator can filter out certain specific elements based on the condition that you provide very efficiently.
2 Likes