How to check whether elements appears in the list only once in python?,len(set(a)) == len(a)