I\'m trying to zip 2 simple lists in Python 3.5, and can\'t figure out how to access the contents. I\'ve read now that zip()
is a generator, and I have to call
that happens when you redefine list
as zip()
(which is probably what you did but didn't show us):
>>> list = zip()
now list
is a zip
object (not the zip
class)
>>> list(z)
now you're attempting to call a zip
object
Traceback (most recent call last):
File "", line 301, in runcode
File "", line 1, in
TypeError: 'zip' object is not callable
>>>
just
del list
(or start from a fresh interpreter)
and everything's back to normal