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.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to