there is something called pyscript (https://pyscript.net/) but this is slower than JS and it is still in alpha.
Ok. Thank you very much
use py-script for faster startup (no transpilation) and better support for python libraries, or brython for faster run (native, optimised JS code). But if you aren’t using python libraries, imo you’d rather just learn JS
For HTML, it’s generally better to use JS with HTML unless your idea is about a python library (ex. Django).