How can i eval subindex on list[ ][ ] ?

jairodsl jairodsl at gmail.com
Tue Jan 16 18:08:58 EST 2007


Excuse me, i was trying in too many ways but i couldnt access subindex
on a list , the problem is the next:

I have

indif=[[0,'A'],[1,'B'],[2,'C'],[3,'D']]

and

indic=[[0,'B'],[1,'C'],[2,'D'],[3,'E']]

i need to eval if indic[i][j] is equal to indif[i][j]

I used a double for but i had got "list index out of range". How can i
do ???

Thanks a lot,

Cordially,

jDSL




More information about the Python-list mailing list