Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python read dictionary from file
15eme Doctor
Programming language:
Python
2021-08-03 22:45:55
0
Q:
python read dictionary from file
AXEL SANTIAGO
Code:
Python
2021-07-11 05:05:08
import ast with open("/path/to/file", "r") as data: dictionary = ast.literal_eval(data.read())
1
Tags
python
file
dict
read
Related
python open and read file with
read file pyghton
how to read from a file into a list in python
python get value from dictionary
how to extract keys from dictreader python
python get dictionary keys
read file python
python read file and return string
python read file
make dictionary from text file python
get json from file python
redirect python output to file
read file in python
python get key from value
get a value from a dictionary python
read files and write into another files python
read in file python
how to read specific words from a file in python
python read entire file
New to Communities?
Join the community