Answers for "hwo to save a dictionary to a file i python"

2

how to save dict in txt format

dict = {'Python' : '.py', 'C++' : '.cpp', 'Java' : '.java'}
f = open("dict.txt","w")
f.write( str(dict) )
f.close()
Posted by: Guest on May-27-2020

Code answers related to "hwo to save a dictionary to a file i python"

Python Answers by Framework

Browse Popular Code Answers by Language