Python Set literal
set([1, 2, 3])
{1, 2, 3} #twice as fast as first solution
MitchAloha
set([1, 2, 3])
{1, 2, 3} #twice as fast as first solution