In <G57Pu.24239$th2.4...@tornado.fastwebnet.it> mauro <ma...@gmail.com> 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
gor...@panix.com    watch 'House', or a real serial killer to watch 'Dexter'.

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

Reply via email to