It is necessary to integrate the html code in python so that it displays on output.
I searched all over the Internet, downloaded many different libraries, but they only do html code through python, and I needed it to be displayed on the screen.
Sample program:
#Could it look something like this?
import somelibrary
code = '''<!DOCTYPE html">
<html>
<head>
<title>sometitle</title>
</head>
<body>
<h1>name</h1>
<p>hello</p>
</body>
</html>'''
somelibrary.show(code)
If you know how to do this, or at least something like that, libraries that can help, please let me know.
Let's clarify the situation. I am making a game on Ren'py(link), and to simplify the work (I need to do something like a phone), I want to use HTML (CSS and JS). So I asked if I could somehow do what I want. I do not make my website.