Re: Adding to dictionaries

jtv2j@server.cs.Virginia.EDU
Wed, 25 Jan 1995 19:48:32 -0500

Glen Collins writes:
| Hello Python world!
|
|
| Is there a simple way to concatinate data to dictonaries? Say something
| to this effect:
|
| x={'foo': 1234,'bar':5678}
|
| and add to "x" y={'ack':901234}
|
| I don't see any function to do this. Being NEW to python all these little ways of
| doing stuff is not in my memory banks yet.
|
|
| -Thanks!
|
| -Glen Collins
|
|
| --

y['ack'] = 901234

John

------------------------------------------------------------------------------|
|John Viega "Time is the school in which we learn, |
|rust@virginia.edu Time is the fire in which we burn." |
|http://uvacs.cs.virginia.edu/~jtv2j/ |
|University of Virginia --Delmore Schwartz |
-------------------------------------------------------------------------------