f = open("demofile.txt", "w") f.write("Hello! Welcome to demofile.txt\nThis file is for testing purposes.\nGood Luck!\n") f.close()