If you want to run Python scripts online (even heavy ones, with libraries, networking, etc.), one popular answer suggests using PythonAnywhere — their free plan gives you limited CPU time and storage, allows pip-installs, and supports network access. Stack Overflow
If you prefer something simpler for sharing/running Python directly in the browser, you might try Pybadu (http://budibadu.com/pybadu) — it gives a quick online-Python environment with minimal setup.