zip

Published at 2024-03-08
Last update over 365 days ago Licensed under CC BY-NC-SA 4.0 langspython
>>> a = [1, 2, 3]
>>> b = [100, 200, 300]
>>> for i, j in zip(a, b):
...     print(i, j)
...
1 100
2 200
3 300