Код: Выделить всё
name = "david"
age = 44
square = age**0.5
HTML=f"""
Download
{name} age is {age} but he is square so age is{square}
"""
with open("test.html","w") as new_file:
new_file.write(HTML)
Подробнее здесь: https://stackoverflow.com/questions/791 ... -html-page
Мобильная версия