I\'d like to create a dictionary from a text file that I have, who\'s contents are in a \'dictionary\' format. Here\'s a sample of what the file contains:
This looks like json to me. Use the json module if so.
json
This looks like yaml to me. Use the pyyaml module if so. (As suggested by @jcollado).
You can't use the json module because it is strict about its input.