There is a list given:
List= ["sugar:10", "coffee:23", "sugar:47", "salt:26"]
From that list I need to get dictionary:
Dict = {"sugar":57, "coffee":23, "salt":26}
I did some similar examples before, but with this one I only have general idea (to split list first) and if there is same key for 2 values I need to add them together.
Can someone pleas help and give me idea how to solve this?