This is a simple test function that is synonymous to my actual code. So I have an array of data structured like this,
a=[[1,2,3,4,5],[0,3,6,8,10],[[1,2,3,4],[1,2,3,4],[1,2,3,4],[1,2,3,4],[1,2,3,4]]]
I am trying to loop over it so that in each pass we get, the first element of the first list, first element in the second list, and then each element in the first list of the third list.
Like this.
for i,j in enumerate(a):
print 'iterations',i
print a[0][i]
print a[1][i]
print a[2][i][0]
print a[2][i][1]
print a[2][i][2]
print a[2][i][3]
But for some reason I cant get passed i=2. Can anyone explain why and how I can rectify this. Thanks. There's no error it just ends at i=2.
len(a) == 3in your example.