Compare tuples of different lenght

Jurgens de Bruin debruinjj at
Sat Aug 20 10:25:18 CEST 2011


I have a list of tuples:


I would like to compare all the tuples to each other and if one
element if found two tuples the smallest tuples is removed from the

example if tuple 1 and tuple 3 are compare it should find that a
single element in each are the same and tuple 1 should be removed
resulting in


the same for tuple 4 and 6 resulting in


is this possible as I am having no success.


More information about the Python-list mailing list