list = [5, 2, 8, 5, 1, 2, 10] answer = [] for i in list: if i not in answer: answer.append(i) print(answer)
To embed this project on your website, copy the following code and paste it into your website's HTML: