SyntaxFix
Write A Post
Hire A Developer
Questions
You can do it using write() :
#open file with *.html* extension to write html file= open("my.html","w") #write then close file file.write(html) file.close()