DEV Community

S3CloudHub
S3CloudHub

Posted on

Map Filter Function in Python

IMAGE ALT TEXT HERE

map and filter are equivalent to writing a generator expression. The map function takes each item in a given iterable and and includes all of them in a new lazy iterable, transforming each item along the way; The filter function doesn't transform the items, but it's selectively picks out which items it should include in the new lazy iterable

Top comments (0)