how to save a dict in a text fiel in python code example
Example: 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))
import json
Dict = {'Dict': Dict}
with open('file.txt', 'w') as file:
file.write(json.dumps(Dict))