livepython.net
main.py
# Write your Python code here.
print("Hello, World!")
Starting Python…Python · runs in your browser

Online Python Compiler

Write Python code and run it right here, in your browser. Python runs on your own device, so it starts once and then every run is instant. There is nothing to install and no account needed.

What you can do

Questions

Is this a real Python?

Yes. It is CPython compiled to WebAssembly (Pyodide), with the standard library. Code that reads files from your computer or opens network connections does not work in the browser.

Why did my program stop?

A run stops after 10 seconds, so a loop that never ends cannot freeze the page. Press Stop to end a run sooner.

I am new to Python. Where do I start?

Start with the Python lessons, then practise with the Python practice questions.