nums = [10, 20, 10, 30, 20, 50] nums.sort() answer = [] for n in nums: if n not in answer: answer.append(n) print(answer)
To embed this project on your website, copy the following code and paste it into your website's HTML: