How can I include python script in a HTML file

50

How can I include python script in a HTML file? -

<!DOCTYPE html>
  <head>
    <link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
    <script defer src="https://pyscript.net/alpha/pyscript.js"></script>
  </head>
  <body>
    <py-script>
      print("Hello World")
    </py-script>
  </body>
</html>

Comments

Submit
0 Comments