Re: [Tutor] Dictionary Inserts...

2005-05-05 Thread Allen John Schmidt, Jr.
Arrgh! How could I be so stupid! :) Thanks for the help! I know many things about python, but I can't believe that I didn't know that! Thanx again! ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Dictionary Inserts...

2005-05-05 Thread Max Noel
On May 5, 2005, at 16:37, Allen John Schmidt, Jr. wrote: > 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? > The way you think it's done: >>> a = {'foo': 1, 'bar': 2} >>> a {'foo': 1, 'bar': 2} >>> a[

Re: [Tutor] Dictionary Inserts...

2005-05-05 Thread André Roberge
Allen John Schmidt, Jr. wrote: > 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! > >>> my_dict = {} >>> my_dict['new_entry'] = ['simple', 'as', 1, 2, 3] >>> my_dict {'new_entry': ['simple', 'as'

Re: [Tutor] Dictionary Inserts...

2005-05-05 Thread Eric Culpepper
'} >>> type(dictMe) 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: tut

[Tutor] Dictionary Inserts...

2005-05-05 Thread Allen John Schmidt, Jr.
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 - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor