2. Python program to find duplicates in an Array.?/

x= [1,2,3,4,5,2]
y=[]
for i in range(0,len(x)):
for j in range(i+1,len(x)):
if(x[i]==x[j]):
y.append(x[i])
print(y)

@rahulgoyal1245
Correct, keep it up.