how to compare 2 list in python using for loop code example
Example: python compare each item of one list
import itertools
for a, b in itertools.combinations(mylist, 2):
compare(a, b)
import itertools
for a, b in itertools.combinations(mylist, 2):
compare(a, b)