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

4 lines
125 B
Python
Raw Permalink Normal View History

2015-11-18 06:14:39 +00:00
from collections import OrderedDict as od
print(list(od.fromkeys([1, 2, 3, 'a', 'b', 'c', 2, 3, 4, 'b', 'c', 'd']).keys()))