RosettaCodeData/Task/Remove-duplicate-elements/Python/remove-duplicate-elements-5.py
2023-07-01 13:44:08 -04:00

3 lines
125 B
Python

from collections import OrderedDict as od
print(list(od.fromkeys([1, 2, 3, 'a', 'b', 'c', 2, 3, 4, 'b', 'c', 'd']).keys()))