Python playground
Write and run Python 3 in your browser. No install, no account, and your code never leaves your computer.
main.py
# 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}!")
Output
What works here
- Python 3.13 with the standard library:
math,random,datetime,json,re,collectionsand more. input()reads from the Input box, one line per call.- Popular packages such as
numpyandpandasload the first time you import them (a few seconds). - A program that runs longer than 15 seconds is stopped, so an endless loop cannot freeze the page.
The playground uses Pyodide, a version of Python built to run inside web browsers.