Python vergleichen Sie jedes Element einer Liste

import itertools
for a, b in itertools.combinations(mylist, 2):
    compare(a, b)
garzj