Find duplicates from a list of integer

l=[1,2,3,4,4,5,2,6,7,8,7]
l1=[]
for i in l:
if i not in l1:
l1.append(i)
else:
print(i,end=" ")

@brindhubala30

Correct, keep it up.
Keep Practicing.

1 Like

well done @brindhubala30 ,
Keep practicing and keep growing.

1 Like