Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

write html in python

# write-html.py

f = open('helloworld.html','w')

message = """<html>
<head></head>
<body><p>Hello World!</p></body>
</html>"""

f.write(message)
f.close()
Source by programminghistorian.org #
 
PREVIOUS NEXT
Tagged: #write #html #python
ADD COMMENT
Topic
Name
6+3 =