Python playground
Real Python 3 in your browser. Nothing to install, nothing uploaded.
Input one line per input()
Output
Press Run (or Ctrl+Enter). The first run loads Python, about 10 MB. What you can do here
- ▶ Run Python 3 with the full standard library.
- 📁 Several files: add
helpers.pyandimport helpersfrommain.py. - 📊 numpy, pandas, matplotlib: import them; charts show under the output.
- ⌨️ input(): type answers in the Input box.
- 🔗 Share and ⬇ download your code. It also saves in this browser as you type.
New to Python? Start with PY-101 Python Fundamentals, free, with a live editor in every lesson.
Questions people ask
Is this a real Python compiler?
Yes. It runs CPython 3 compiled to WebAssembly (Pyodide) inside your browser. Your code never leaves your device and nothing is installed.
Can I use numpy, pandas and matplotlib online here?
Yes. Import them and they download the first time (a few seconds). matplotlib charts appear under the output. Packages that need a network or a GPU will not work in a browser.
Can I use input() in an online Python editor?
Yes. Type the answers in the Input box before you press Run, one line for each input() call.
How do I share my Python code?
Press Share. The link holds your files inside the address itself, so anyone who opens it sees your code. Nothing is stored on a server.
Is my code saved?
Yes, in this browser, every time you type. Clearing your browser data removes it, so download files you want to keep.