I have a list of dictionaries,
lst = [{'A':1,'B':2,'C':4},{'A':2,'B':2,'C':4},{'A':3,'B':2,'C':4}]
I want to merge this into one dictionary and put the values inside list if a key has different values.
desired output = {'A':[1,2,3},'B':2,'C':4}
I tried but it was resulting in something like,
{'A':[1,2,3},'B':[2],'C':[4]}