It seems sets are deprecated in Python 2.7 and wondering what is the alternative for unordered unique collection? Thanks.
from sets import Set
a = Set()
a.add("1")
a.add("2")
a.add("3")
if "1" in a:
print "1"
if "Hello" in a:
print "Hello"
regards, Lin