Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

read dict from text

file = open("dictionary_string.txt", "r")

contents = file.read()
dictionary = ast.literal_eval(contents)

file.close()
 
PREVIOUS NEXT
Tagged: #read #dict #text
ADD COMMENT
Topic
Name
3+8 =