#2. Python program to find duplicates in an Array

l=[1,2,3,4,5, 7, 3, 4, 3, 2, 4]
l1=[]
for n in l:
if n not in l1:
l1.append(n)
else:
print("The duplicates are : ", n)

3 Likes

@sathsaran01

Correct, keep it up.