filmov
tv
Map & Filter functions in Python

Показать описание
#short
Map & Filter functions in Python explained in a minute
The filter() method filters the given sequence with the help of a function that tests each element in the sequence to be true or not.
map() function returns a map object(which is an iterator) of the results after applying the given function to each item of a given iterable (list, tuple etc.)
Map & Filter functions in Python explained in a minute
The filter() method filters the given sequence with the help of a function that tests each element in the sequence to be true or not.
map() function returns a map object(which is an iterator) of the results after applying the given function to each item of a given iterable (list, tuple etc.)