How can I find the index of the duplicate element in the array?
mylist = [1,2,3,4,5,6,7,8,9,10,1,2]
How can I find the index number of 1 and 2 repeated array elements here? So, not the first duplicate element, I want to find and delete the trailing duplicate element from the array. 1 2 values at the end. Thanks for your responses.