• task Non-unique Elements help

Question related to mission Non-unique Elements

 

def checkio(data: list) -> list: for i in data: if data.count(i)==1: data.remove(i) return data when run the code above, 2nd example can not pass, but other exapmles are ok. I don't kown why. please help !