Program to Get Data Items From a List Appearing Odd Number of Times

x = [1,2,3,4,5,1,3,3,4]
l1=[]
for i in x:
if x.count(i)%2!=0 and i not in l1:
l1.append(i)

print (l1)

Comments

Popular posts from this blog

Guess game!

Path for chromedriver