'pyscript print function displays then vanishes in a second

I recently started using pyscript and in the tag I have only written a print statement. On the browser the value prints but only for a second and then vanishes. I am currently using the CDN to use pyscript. Is there anything I need to be aware of?

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- pyscript stuff -->
    <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('order 66')
    </py-script>
</body>
</html>



Solution 1:[1]

just put the print inside HTML tag

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Hunnyjain