This article shows how to implement the set built-in at the expense of a dictionary.
Check out codegolf.stackexchange.com if you want to solve programming puzzles, but with a twist.