fork download
  1. import collections
  2.  
  3. print list(collections.OrderedDict.fromkeys([1, 5, 2, 2, 1, 6]))
  4.  
Success #stdin #stdout 0.09s 10888KB
stdin
Standard input is empty
stdout
[1, 5, 2, 6]