Since you seem to care about how many times the item was found in both lists, you need to either remove matching items from the list that you are comparing:
comp = n2[:] # make a copy for x in n1: if x not in comp: print x else: comp.remove(x) # output: 3
or use collections.Counter
from collections import Counter print Counter(n1) - Counter(n2)
which tells you which elements in n1 not in n2 , or they can be found more often in n1 than in n2 .
So for example:
>>> Counter([1,2,2,2,3]) - Counter([1,2]) Counter({2: 2, 3: 1})
source share