Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered Aug 10 '17

jconto gravatar image

It is a good practice to use the close() method to close a file. After the f.write line add:

f.close()