RosettaCodeData/Task/Remove-duplicate-elements/Python/remove-duplicate-elements-5.py

4 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()))