Practical 2
<!DOCTYPE html>
<html>
<head>
<title>Welcome Example</title>
<!-- PyScript CSS -->
<link rel="stylesheet" href="https://pyscript.net/releases/2025.8.1/pyscript.css" />
<!-- PyScript JS -->
<script src="https://pyscript.net/releases/2025.8.1/pyscript.js"></script>
</head>
<body>
<h2>Welcome Example</h2>
<py-script>
print("Welcome")
</py-script>
</body>
</html>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter