Enumerate and Zip Only Go Once
letters = ['a', 'b', 'c']
e = enumerate(letters)
print(list(e))
print(list(e))
z = zip([1, 2, 3], ['x', 'y', 'z'])
print(list(z))
print(list(z))
What gets printed by the two second print(list(...)) calls?
Sign in to answer questions and track your progress
Sign In