How to append to a dictionary

Harlin Seritt harlinseritt at yahoo.com
Fri May 19 07:59:45 EDT 2006


I have some code here:

groups = {'IRISH' : 'green', 'AMERICAN' : 'blue'}

I want to add another key: 'ITALIAN' : 'orange'

How do I append this to 'groups'?

Thanks,

Harlin Seritt




More information about the Python-list mailing list