How do I iterate over the tuples of the items of two or more lists in Python? [duplicate]

It’s not necessary to unpack and repack the tuples returned by zip:

'\n'.join(' '.join(x) for x in zip(a, b))

Leave a Comment