[Tutor] Creating a dictionary
Válas Péter
sulinet at postafiok.hu
Fri May 27 15:52:09 CEST 2011
Hi,
I think I am new to here, as far as I remember. :-)
http://docs.python.org/dev/library/stdtypes.html#dict says:
we can create a dictionary with
- dict({'one': 1, 'two': 2})
What is the adventage of this form to simply writing d = {'one': 1, 'two': 2}?
Is there any difference?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110527/99d50f26/attachment.html>
More information about the Tutor
mailing list