Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html>
<head>
<script defer src="https://pyscript.net/latest/pyscript.js"></script>
</head>
<body>
<input id="nameInput" value="Alice">
<py-script>
from js import document
name = document.getElementById('nameInput').value
print('Hello', name)
</py-script>
</body>
</html>Coding works best on desktop or with an external keyboard.