Here's some quick examples:
>>> dictMe = {}
>>> dictMe['SomeKey'] = 'SomeValue'
>>> dictMe
{'SomeKey': 'SomeValue'}
>>> dictMe[1] = 100
>>> dictMe
{1: 100, 'SomeKey': 'SomeValue'}
>>> type(dictMe)
<type 'dict'>Section 5.5 of the Python tutorial covers dictionaries a little more in depth. http://docs.python.org/tut/node7.html -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Allen John Schmidt, Jr. Sent: Thursday, May 05, 2005 10:37 AM To: [email protected] Subject: [Tutor] Dictionary Inserts... Ok, I have had enough. I have looked all through the python docs and I cannot find it. How do you insert an entry into a dictionary? Thanx! _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
