Possible Duplicate:
Python “extend” for a dictionary
I know that Python list can be appended or extended. Is there an easy way to combine two Python dictionaries with unique keys, for instance:
basket_one = {'fruit': 'watermelon', 'veggie': 'pumpkin'}
basket_two = {'dairy': 'cheese', 'meat': 'turkey'}
I then want one big basket of food:
basket = {
'fruit': 'watermelon',
'veggie': 'pumpkin',
'dairy': 'cheese',
'meat': 'turkey'
}
How can I perform the above in Python?