because you cant port python to html?
There are extra tools and such you could look for, like pyscript. You could also find a way to compile python to wasm (a very indirect way of doing it, but it'd work). Up to you if it'd be worth the effort!
I didnt know that! Thanks for letting me know! I'll definietly look into that!