# ================================================================== # #from: anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/files.html # ================================================================== outFile = open('sample1.txt','w') outFile.write('My first output file!') outFile.write('My second output line!') outFile.close()