import os # Define the HTML content based on the user's detailed specifications html_content = """ Calculadora del Año Perdido | Manga Digital

AÑO PERDIDO

¿Cuál es tu peso actual?

""" # Save the file file_name = "index.html" with open(file_name, "w", encoding="utf-8") as f: f.write(html_content) print(f"Archivo {file_name} generado exitosamente.")