Python Compiler

Write and run Python code in your browser.

Code

Output

Click Run (or press Ctrl+Enter) to see the output here.

Input for input() (one line per call)

Python 3 runs in your browser (Pyodide), standard library only. The first run downloads about 10 MB, so it needs internet; later runs are cached. Programs are stopped after 10 seconds.