The Playground

Write Python right here

A real Python 3.14 interpreter, running inside this page. Nothing is installed and nothing is uploaded: your code never leaves your machine, because there is no server to send it to.

starting up…

Output

Press run, or Ctrl+Enter.

💬 input() works: when your program asks a question, your browser pops up a box. Your draft is saved in this browser automatically.

🧠 How this works, since you will wonder

This is Pyodide: the actual CPython interpreter compiled to WebAssembly, so it runs at native-ish speed in a sandbox your browser already trusts. The whole standard library is here: try import json, import random, import datetime.

What is not here: the network (no requests), your files, and anything that needs an operating system. For those, do the ten-minute lab setup and run Python properly on your own machine.

♾️ If you write an infinite loop The school stops any program that runs longer than 20 seconds and tells you so. This is a feature: writing a loop that never ends is a rite of passage, and freezing your own browser tab should not be the punishment.