Python playground

Write and run Python 3 in your browser. No install, no account, and your code never leaves your computer.

main.pyCtrl+Enter runs
# Write any Python here and press Run (or Ctrl+Enter).
# It runs in your browser: nothing is sent to a server.

names = ["Ana", "Ben", "Chloé"]
for i, name in enumerate(names, start=1):
    print(f"{i}. Hello, {name}!")

What works here

The playground uses Pyodide, a version of Python built to run inside web browsers.

Spotted a mistake on this page? Tell us