I am writing a code which basically adds the values in similar items from both dictionaries, and prints rest items.
food = ["cheese pizza", "quiche","morning bun","gummy bear","tea cake"]
bakery_stock = {
"almond croissant" : 12,
"toffee cookie": 3,
"morning bun": 1,
"chocolate chunk cookie": 9,
"tea cake": 25
}
new_di = dict.fromkeys(food, 1)
if new_di in bakery_stock:
bakery_stock.update(new_di)
print(bakery_stock)