Suppose i have the following nested list: >>> x [['19600894', '1', 'chr15_76136768', 'MISSENSE'], ['19600894', '2', 'chr15_76136768', 'MISSENSE'], ['18467762', '1', 'chr14_23354066', 'MISSENSE']]
How do i obtain from nested list x (given above), the following nested list z: >>> z [['chr15_76136768', 'MISSENSE'], ['chr14_23354066', 'MISSENSE']] ------ In other words, if the third element of an element of x is the same, then i wish to combine it into a single element.
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor