File: LP6E/AppendixB/Part2/maker.py
file = open('myfile.txt', 'w') file.write('Hello file world!\n') # Or: open().write() file.close() # close not always needed