Source Code:
(back to article)
original_list = [1, 2, 3, 4, 2, 3, 4, 5] unique_list = [] for element in original_list: if element not in unique_list: unique_list.append(element) print(unique_list)
Result:
Report an issue