fork download
  1. from itertools import chain
  2.  
  3. d = [[1],[2],[3],[3]]
  4.  
  5. print(set(chain.from_iterable(d)))
Success #stdin #stdout 0.03s 9216KB
stdin
Standard input is empty
stdout
{1, 2, 3}