python program to read a file and store in dict code example
Example: python read dictionary from file
import ast
with open("/path/to/file", "r") as data:
dictionary = ast.literal_eval(data.read())
import ast
with open("/path/to/file", "r") as data:
dictionary = ast.literal_eval(data.read())