Here is how to loop through two lists at the same time in Python.
first_list = [1, 2, 3]
second_list = [10, 20, 30]
for i, j in zip(first_list, second_list):
print(i, j)
Output
1 10 2 20 3 30
Explanation
We need to use the Python zip() function to stack the lists together. The zip function extract pairs of items from the two lists and create a list of tuples. Each tuple will have a pair of items.