3 ms·
Simply wrap it in list(), or use a list comprehension. Most things in python3 are iterators now, so the same thing applies to many things.
by ehsankia 5y ago
Simply wrap it in list(), or use a list comprehension. Most things in python3 are iterators now, so the same thing applies to many things.