Let's say that I have a dictionary that contains the following:
Dessert = {'cake': 71,
'Crumble': 53,
'ice cream Chocolate': 23,
'ice cream Vanilla': 15,
'ice cream Strawberry': 9,
'ice cream Mint chocolate': 8}
how can I group keys that start in the same way ? I would like to get something like this:
Dessert = {'cake': 71,
'Crumble': 53,
'ice cream': 55}
I'm not sure I'm using the right words when I do my research so a little help would be nice. Do I have to create a new dictionay and sum all the keys starting with 'ice cream'?