• I don't know how to solve it

Question related to mission Non-unique Elements

 

def checkio(data: list) -> list:

for i in data:
    if data.count(i) == 1:
        del data[data.index(i)]
return data

data = [1,2,3,4,5] result -> [2,4]