index in "double" list

Boštjan Jerko bostjan.jerko at mf.uni-lj.si
Tue Feb 3 03:04:09 EST 2004


Hello!

I have a list of lists (e.g. [[1,"a"],[2,"b"],[3,"c"]]) and 
would like to do index on the first element of the lists.
Can it be done?

B.




More information about the Python-list mailing list