Answers for "python convert string into dictionary"

1

convert string representation of dict to dict python

>>> import ast
>>> ast.literal_eval("{'muffin' : 'lolz', 'foo' : 'kitty'}")
{'muffin': 'lolz', 'foo': 'kitty'}
Posted by: Guest on September-20-2020

Code answers related to "python convert string into dictionary"

Python Answers by Framework

Browse Popular Code Answers by Language