Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to create text file with python and store a dictionary

import json

Dict = {'Dict': Dict}

with open('file.txt', 'w') as file:
     file.write(json.dumps(Dict))
 
PREVIOUS NEXT
Tagged: #create #text #file #python #store #dictionary
ADD COMMENT
Topic
Name
8+6 =