Python Bandingkan setiap item dari satu daftar
import itertools
for a, b in itertools.combinations(mylist, 2):
compare(a, b)
garzj
import itertools
for a, b in itertools.combinations(mylist, 2):
compare(a, b)