I have a dictionary which has fruits that were bought that month.
The dictionary looks like this:
bought = {
January: ['Apple', 'Banana', 'Orange', 'Kiwi', 'Raspberry'],
February: ['Orange', 'Mango', 'Banana'],
March: ['Apple', 'Starfruit', 'Apricot']
}
Is there any way that I could list how many times I bought each fruit.
I want the output to look something like this
Apple: 2, Banana: 2, Orange: 2, Kiwi: 1, Raspberry: 1, Mango: 1, Starfruit: 1, Apricot: 1
All the other places I have use a dictionary to show how many times a word is used in a list. I am looking for a dictionary that finds out how many times a word is mentioned in another dictionary.