Sorting tuples

Jon Cosby jcosby at wolfenet.com
Sun Apr 18 17:57:52 EDT 1999


I have a list of tuples
[('a','p','q'),('b','r','s'),('c','t','u'),('a','v','w'),('b','x','y')],
and I want to print out

a : p, q, v, w
b : r, s, x, y
c : t, u

Can somebody tell me what command will do this?

Jon Cosby






More information about the Python-list mailing list