You can download this code by clicking the button below.
This code is now available for download.
This function takes multiple iterable objects and combines them into an iterator. It yields a tuple with elements from each iterable on each iteration.
Technology Stack : Iterator
Code Type : Iterator
Code Difficulty : Intermediate
def zip(*args):
iterator = iter(args)
for i in iterator:
for j in i:
yield j