Lecture 75: Python has Special Function Filter

Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.

Lecture 75: Python has Special Function Filter

N
Nafees AI Lab

14 Views • May 23, 2025

Description


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.