i want to print my user variable from my python script to a html document and this is the way I have to do this. How do i go about doing it?
my_python.py
user = "myname"
with open("../../html/forms/output.html") as output:
print(output.readlines())
output.html
<h1>{user}</h1>
EXPECTED OUTPUT :
<h1>myname</h1>
ACTUAL OUTPUT :
<h1>{user}</h1>