Simple Functions With PyScript

These where the first bits of Python code that I ran in a browser, I'm not going to call it webdevelopment. PyScript might be useful in some scenarios but it is both very slow compared to other solutions and lacks information on how to use it. Especially since no one seems to be using it finding guides is almost impossible. But it taught me a lot and made running Python code in a browser very transparent. And I quickly found that you use it very much the same as JavaScript, so I also started to understand JavaScript as a result of going down this rabbit hole.