html_content = """ Hello World

Hello!

This is a basic HTML file generated just for you.

""" with open("hello.html", "w") as f: f.write(html_content)