I want to know how do I compare 2 dictionary in python to enable and create into 1 dictionary that if both dictionary happen to have the same keys then it will be 1 keys in the new dictionary and the values of the the same keys will be add together and will be the new values for the 1 keys for eg.
def view_cart():
if shopping_cart.keys() in shopping_cart_2.keys:
new_shop = shopping_cart.values + shopping_cart_2.values
print(new_shop)
shopping_cart = {'milk': 1, 'eggs': 1, 'bread': 2}
shopping_cart_2 = {'milk': 1 ,'coke': 3, 'oyster sauces': 1}