I think you're looking for zip
Enter=[7.12,
7.14,
7.24,
7.45,
7.28,
7.31,
7.18,
7.25,
7.33,
7.38] #A list for the times of cars passing Camera A
Leave=[7.56,
7.24,
7.48,
7.52,
7.45,
7.57,
7.22,
7.31,
7.37,
7.41] #A list for the times of cars passing Camera B
for enter_data, leave_data in zip(Enter, Leave):
print(leave_data - enter_data)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…