I am looking at this recipe:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440509
When I tried to do it, doesn't work. why?
>>> from sets import Set
>>> new_list = [2,34,5,5,6,6,7,2]
>>> print new_list
[2, 34, 5, 5, 6, 6, 7, 2]
>>> new_list = Set(new_list).elems
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
AttributeError: 'Set' object has no attribute 'elems'
>>>