how to find duplicate elements in array using for loop in python?,[i for i in y if y[i] > 1]