The Best Solution(?)

X and Y are sequences. Construct a sequence Z which contains each element from X and Y, but only once each.

d = {}
for i in X:
   d[i] = 1
for i in Y:
   d[i] = 1
Z = d.keys()

This is very slightly faster than the first solution, since it saves on one sequence creation.