How to add pairs to a dict, typo corrected in this one.

Anthony Liu antonyliu2002 at yahoo.com
Fri Mar 12 09:40:58 CET 2004


Sorry about the typo in the previous message.

I want to keep adding pairs my phone_book dict like
so:

phone_book={'jack':2313, 'john':3436}

And then each time when a new pair is created, for
example, 'tom':5678, I want to add it to the dict so
that the dict becomes 

phone_book={'jack':2313, 'john':3436, 'tom':5678}




__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com




More information about the Python-list mailing list