Source Code:
(back to article)
original_list = [1, 2, 3, 4, 2, 3, 4, 5] unique_list = list(dict.fromkeys(original_list)) print(unique_list)
Result:
Report an issue