DEV Community

MD Taseen Khan
MD Taseen Khan

Posted on

How to use Python in HTML

Code Example

<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>
Enter fullscreen mode Exit fullscreen mode

Discussion (0)