Answer:
// Python code
username=input("Type your name: ")
desc=input("Describe yourself: ")
f=open('profile.html','w')
html="<html>\n"+\
"<head>\n"+\
"</head>\n"+\
"<body>\n"+\
"<center>\n"+\
"<h1>"+username+"</h1>\n"+\
"</center>\n"+\
"<hr/>\n"+\
desc+"\n"\
"<hr/>\n"+\
"</body>\n"+\
"</html>\n"
f.write(html)
f.close()
Code for profile.html file
<html>
<head>
</head>
<body>
<center>
<h1>Jon Doe</h1>
</center>
<hr/>
A software engineer working at a startup.
<hr/>
</body>
</html>
Explanation: