Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

f.close()