Dictionaries

Boris Borcic bborcic at gmail.com
Wed Oct 18 12:03:09 EDT 2006


dict(a.items() + b.items())

Lad wrote:
> How can I add two dictionaries into one?
> E.g.
> a={'a:1}
> b={'b':2}
> 
> I need
> 
> the result {'a':1,'b':2}.
> 
> Is it possible?



More information about the Python-list mailing list