Answers for "read dict from text"

0

read dict from text

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

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

file.close()
Posted by: Guest on October-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language