I have a list called 'A' also have an iterator called 'B', 'B' is the iterator of 'A'.
A = [1, 2, 3, 4, 5, 6, 7, 8, 9]
B = iter(A)
The output of zip(A,A,A)
is
[(0, 0, 0),
(1, 1, 1),
(2, 2, 2),
(3, 3, 3),
(4, 4, 4),
(5, 5, 5),
(6, 6, 6),
(7, 7, 7),
(8, 8, 8)]
The output of zip(B, B, B)
is
[(0, 1, 2), (3, 4, 5), (6, 7, 8)]
Is anybody can explain the difference