Title: Message
Hi List,
 
Is there an easy way to combine dictionaries?
 
e.g.
 
a = {}
b = {}
 
a = {'a':'a', 'b':'b', 'c':'c'}
b = {'1':1, '2':2, '3':3}
c = a + b # doesn't seem to work
 
desired:
c = {'a':'a', 'b':'b', 'c':'c', '1':1, '2':2, '3':3}
 
Thanks,
Frank
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to