4. HTMLΒΆ

file = open("hello.html", "w")
file.write(
    """<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset = "utf-8">
    <title>Page Title</title>
</head>
<body>
    Hello!
</body>
</html>"""
)
file.close()

Test the program above.

Data file: hello.html

You have attempted of activities on this page