Python List: Two Ways to Iterate Over Multiple Sequences in Parallel
Solution 2: In a better way you could use python built-in function zip(*iterables, strict=False), which iterate over several iterables in parallel, return tuples with an item from each one. By default, iteration stops when the shortest iterable is exhausted.
#python #pythonprogramming #pythontutorial #shorts