f = open("demofile2.txt", "w") # Creating and writing to a new file f.write("demofile2 file created, with this content in!") f.close()