[python-win32] Dictionary command
Naveed Ahmed Khan
naveed48 at wol.net.pk
Wed Nov 17 07:07:26 CET 2004
Dear friends,
Thanks a lot for your help my problem is solved. Though I am afraid to tell
you of my real blunder. I mean you must understand that it's my first time
with programming.
I was trying to achieve the following:
>>> dict = {}
>>> dict['boolean'] = "A value which is either true or false"
>>> dict['integer'] = "A whole number"
>>> print dict['boolean']
A value which is either true or false
What I was doing was that I was writing dict = () instead of dict = {}, got
it, I was using the wrong bracket.
It's really embarrassing, but true.
For the next time I will try to figure out how to copy the "Python command
line screen" so that you can see exactly what I have done there.
Thanks a lot again.
Regards,
NAK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20041117/47ca146b/attachment.htm
More information about the Python-win32
mailing list