Hi ,
I'm a newbie to python.
I would appreciate if someone can help me in solving this one.
Say i have a string str1 = "a:1,a:2,b:3,c:4"
I want to get output in form of a dictionary like d= {a:3 , b:3 , c:4}
i.e
if in the string a repeats twice I need to add a:1 and a:2 and replace a with updated value(3 here) and get it in dictionary format.
Please suggest a way out.
Thanks for any inputs.