3 ms·
> "You have to cast your data back to a list/tuple after using enumerate() and map()." -- I don't know what that means I'm assuming that the author has a probl
by BerislavLopac 7y ago
> "You have to cast your data back to a list/tuple after using enumerate() and map()." -- I don't know what that means
I'm assuming that the author has a problem with the fact that those two functions return a generator and not a list.
- gimboland 7y agoThey return an iterator, not a generator.
- BerislavLopac 7y agoYou are correct, I typed without thinking. But my point remains the same.