In <[email protected]> mauro <[email protected]> writes:

> - Dictionaries and sets are both accessed by key

As far as I have used sets, they are not accessed by key.

>>> x = set([1, 2, 'buckle my shoe'])
>>> x
set([1, 2, 'buckle my shoe'])
>>> 1 in x
True
>>> 5 in x
False

-- 
John Gordon         Imagine what it must be like for a real medical doctor to
[email protected]    watch 'House', or a real serial killer to watch 'Dexter'.

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to