[Tutor] manipulating list of lists

Vincent Gulinao vincent.gulinao at gmail.com
Mon Oct 24 16:29:43 CEST 2005


I have a list of lists of constant width (2 rows). I need to:
1. delete sub-lists with None element
2. sort it by any sub-list index

say: [ ['c','d'], ['g',None], ['a','b',], ['e','f']
if sorted using 2nd index: [ ['a','b'], ['c','d'], ['e','f'] ] (same result
for 1st index for this example)

TIA.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20051024/b21a1fe5/attachment.htm


More information about the Tutor mailing list