keys with multiple values in a dictionary (Python)

Viewed 309

I have the following list (I have omitted some values from the list):

all_examples=   ['A,1,1', 'B,2,1', 'C,4,4', 'D,4,5',...]

I need to create a dictionary such that a key has multiple values.

dict = {"A":[1,1], "B":[2,1]}

I looked for some possible solution, but couldn't make it work on mine.

3 Answers
Related