t1 = ("a", "b", "c", "d")
t2 = (1, 2, 3, 4)
z = zip(t1, t2)
print(list(z))
print(dict(z))
It seems like we can cast the zip object only once. After z = zip(t1, t2)
only the first casting either list(z)
or dict(z)
works and the other one does not work. Why is it so ?