# Filename to write
filename = "myfile.txt"

# Open the file with writing permission
myfile = open(filename, "w")

# Write a line to the file
myfile.write("Written with Python\n")

# Close the file
myfile.close()
