How do I run my python code in the browser

How do I run my python code in the browser (Firefox DEV edition)? I have tried watching guides and tutorials but none of them works. So if I write print('Hi Python!') in pycharm it will display Hi python on a tab in Firefox DEv edition.

Python can’t be interpreted by the browser, so you will need to use a special environment - like I use replit.com to run python in browser

Try this one https://py3.codeskulptor.org/
It works good for quickly testi your Python code in the browser.

I think it can because youtube says I can but I can’t get it right I want to apply python in apps, and websites because I heard some websites use python.

for backend, yes - Python can run on servers

for frontend you need a python web framework like Django