I wish someone commanded their agent to write a Python "compiler" targeting WASM. I'm quite surprised there is still no such thing at this day and age...
Not sure if this is what you are looking for, but here is Python compiled to WASM: https://pyodide.org/en/stable/
Web demo: https://pyodide.org/en/stable/console.html
Not sure if this is what you are looking for, but here is Python compiled to WASM: https://pyodide.org/en/stable/
Web demo: https://pyodide.org/en/stable/console.html