You can download this code by clicking the button below.
This code is now available for download.
This function accepts an arbitrary number of iterable arguments and returns an iterator that generates tuples, with each tuple containing the next element from each iterable argument.
Technology Stack : Iterator, tuple
Code Type : Iterator
Code Difficulty : Intermediate
def zip(*args):
iterator = iter(args)
for _ in args:
for arg in iterator:
yield arg