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))
Are there any code examples left?
New code examples in category Python
import json
Dict = {'Dict': Dict}
with open('file.txt', 'w') as file:
file.write(json.dumps(Dict))