Yong Cui
1 min readOct 5, 2020

--

If the filtered list is to be used as an iterable, such as in a for loop, you may want to use the filter() function, because filter object is an iterable itself.

--

--

Yong Cui
Yong Cui

Written by Yong Cui

Work at the nexus of biomedicine, data science & mobile dev. Author of Python How-to by Manning (https://www.manning.com/books/python-how-to).

No responses yet