DEV Community

Discussion on: Understanding map, filter, and zip in Python

Collapse
 
jmmedina00 profile image
Juan Miguel Medina Prieto

I suppose you have to use the list() function on the result these three functions return because that's just an iterable instead of a list, right?

Collapse
 
codespent profile image
Patrick Hanford

Correct. Map, filter, and zip objects are iterables, but we convert to a list for the sake of printing. :)