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