How to convert list of tuples into a single list of unique values ?

pekka niiranen krissepu at vip.fi
Thu Jan 10 12:28:48 CET 2002


I have a list of equal size tuples, but a tuple may contain empty values:

t = [ ( a,b,c), (d, ,f) (b,a,j) ]

How can I convert it into a single list of unique values:

l = [a,b,c,d,f,j]

No lambdas, please

-pekka-




More information about the Python-list mailing list