Indexing list of lists

Hilde Roth hildegarde_roth at
Tue Sep 16 20:15:28 CEST 2003

This may have been asked before but I can't find it. If I have
a rectangular list of lists, say, l = [[1,10],[2,20],[3,30]], is 
there a handy syntax for retrieving the ith item of every sublist?
I know about [i[0] for i in l] but I was hoping for something more
like l[;0].


More information about the Python-list mailing list