I\'m new to Python. I need to query items from a dict and save the result to a text file. Here\'s what I have:
import json import exec.fullog as e input = e
You would probably want this. Simplest solution would be
Create file first.
open file via
f = open('', 'w')
or
f = open('', 'a')
in case you want to append to file
Now, write to the same file via
f.write()
Close the file after you are done using it
#good pracitice f.close()