a = [1,2,3,4,5,6]
b = [0.13,0.14,0.78,0.46,0.66]
zip(a,b)
Out[4]: <zip at 0x7fe0d41a6388>
for i in zip(a,b):
print(i)
(1, 0.13)
(2, 0.14)
(3, 0.78)
(4, 0.46)
(5, 0.66)
for i in range(len(a)):
a_i = a[i]
b_i = b[i]
print(a_i,b_i)
1 0.13
2 0.14
3 0.78
4 0.46
5 0.66
[i for i in zip(a,b)]
Out[7]: [(1, 0.13), (2, 0.14), (3, 0.78), (4, 0.46), (5, 0.66)]