In [65]:
list(zip())
Out[65]:
In [66]:
x = [1,2,3]
it = zip(x)
list(it)
Out[66]:
In [111]:
x = [1, 2, 3, 4, 5, 6]
y = ["a", "b", "c"]
it = zip(x,y) # Tuple length is always min of all input iterables.
ls = list(it)
print(ls)
In [122]:
x, y = zip(*ls)
print(x)
print(y)
In [124]:
x = [(1,2, 4), (3,4)]
x, y = list(zip(*x))
print(x)
print(y)