Source Code:
(back to article)
my_list = [1, 2, 2, 3, 4, 4, 5] unique_set = set(my_list) unique_list = list(unique_set) print(unique_list) # [1, 2, 3, 4, 5]
Result:
Report an issue