ShriRam Changed status to publish August 18, 2023
a = [10,20,30,20,10,50,60,40,80,50,40]
dup = []
uniq = []
for x in a:
if x not in uniq:
uniq.append(x)
else:
dup.append(x)
print(“Duplicate number= “,dup)
print(“Uniq number= “,uniq)
ShriRam Changed status to publish August 18, 2023