There are different ways to handle this:
(I believe 1. fits you the best)
Use Streamlit (or look for alternatives), it lets you write pure python and it runs as a web app that you could deploy and others can use.
Use a Python Web Framework (Flask, FastApi, other) which will require some html knowledge (and js if you need dynamic updates i believe)
Or you could use Pyodide or Brython, which let python run inside WebAssembly (i think you will still need js/html in some way there)