Can you use enumerate()
Because of I still celebrate here is another way
Because of I still celebrate here is another way
In [1]: a=[1,2,3,4] In [2]: b=[5,6,7,8] In [3]: c = [] In [4]: for index, var in enumerate(a): ...: c.append((var, b[index])) ...: In [5]: c Out[5]: [(1, 5), (2, 6), (3, 7), (4, 8)]