Skip to content

Python playground

Online Python compiler

Write Python, press Run and see the output. It runs in your browser with no install and no sign-up.

Loading editor...

Output

Run your code to see its output here.

How this Python compiler works

  • Runs Python 3.14 in your browser through Pyodide, a WebAssembly build of CPython.
  • Use input() to read from the Input box, one line per call.
  • Many popular packages, such as NumPy and pandas, are downloaded automatically when your code imports them.
  • A program is stopped after 10 seconds of running time. Networking, threads and subprocesses are not available.

Your code is saved on this device as you type. Press Share to get a link that contains your code, and anyone who opens it sees the same program.

Also try: JavaScript compiler, TypeScript compiler

Questions about the Python compiler

Which Python version does this use?
Python 3.14, running through Pyodide, a WebAssembly build of CPython that runs inside your browser.
Why is the first run slow?
The first run downloads the Python runtime to your browser. After that it is cached, and later runs on this page start quickly.
Can I use NumPy, pandas or other packages?
Packages that ship with Pyodide, including NumPy and pandas, are loaded automatically when your code imports them. Packages that need native code outside the Pyodide set are not available.
How do I give my program input?
Type the input into the Input box, one line for each call to input(). When the lines run out, input() raises EOFError, just as it does when a terminal closes.
Is my code sent to a server?
No. Your code runs in your browser. Snippets are saved on your device, and a share link stores the code inside the link itself.