archive = open('archive.html','w') #I named it as file.html, but you can put any other name
archive.write("<html> \n")
archive.write("<h1>HELLO WORLD</h1>\n")
archive.write("</html>") 
archive.close()