Source Code:
(back to article)
a = [1, 2, 3] b = [4, 5, 6] c = [7, 8, 9] zipped = zip(a, b, c) # Returns an iterator of tuples, where the first tuple contains the first element of each input list print(zipped)
Result:
Report an issue