>>> [i for i, j in zip(a, b) if i == j] [5]
[ x&y for (x,y) in zip(list_a, list_b)]
def compareList(l1,l2): l1.sort() l2.sort() if(l1==l2): return "Equal" else: return "Non equal"