Hi would like to store a dictionary in a file but my code doesn't work.
Here the code:
d=open('dict.txt', 'w')
for key, v in dict_ens.iteritems(): # dict_ens is another dict i have
dict_ens[key]=dict_ens[key][2:]
if key in enstts: #
d.write(key, v)
else :
d.write('no key')
d.close()
what could be wrong with that???