What is the use of filter(),Batch - DS301222

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.


It is correct Well explained @thaseenraza1210

1 Like