I have a string in the form of:
s = \'A - 13, B - 14, C - 29, M - 99\'
and so on (the length varies). What is the easiest way to create a d
Those who came here with following problem :
convert string a = '{"a":1,"b":2}' to dictionary object.
a = '{"a":1,"b":2}'
you can simply use a = eval(a) to get a as object of dictionary from a string object.
a = eval(a)
a