Lecture 75: Python has Special Function Filter

visibility 14 просмотров schedule 1 г. назад timer 6:45
open_in_new Dailymotion
<br />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.<br />