In a list, I have duplicate elements that I want to remove.
The following code doesn't work:
Note: temp containts the list of indexes of elements that I want to remove.
x is my list.
temp = self.list_duplicates(x)
for index in tmp:
del x[index]