Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python turn dict string to dict

the_string = "{'hi': 'lol', 'us': 'no'}"
the_dict = eval(the_string)
print(the_dict)
print(type(the_dict))
 
PREVIOUS NEXT
Tagged: #python #turn #dict #string #dict
ADD COMMENT
Topic
Name
8+9 =