[Tutor] sorting nested tuples

Conrad Koziol arkamir at softhome.net
Fri Oct 17 20:14:56 EDT 2003


if I have a list


x = [('hello', 2), ('goodbye', 3), ('python', 1)]

how would i sort it by the 2 variable or any variable for that matter.



More information about the Tutor mailing list