Python Editor
Write Python, press Run and see the result. It runs inside the browser, so there is nothing to install and the code never leaves the device.
Loading Python…
Output
Press Run to see the output here.
How to use it
- Type or paste Python, then tap Run (or press Ctrl or Cmd + Enter).
- Pick a program from Examples to start from.
- Copy share link gives a link that opens with the code already in the editor.
- Use the Input box if your program calls
input().
- If a program runs forever, tap Stop.
What works
- Standard Python 3, loops, classes, files in memory,
random, datetime, json and more.
- Popular packages such as
numpy, pandas, matplotlib and scikit-learn load by themselves when they are imported. The first import takes a few seconds.
- Charts from
matplotlib show under the output.
- Things that need a server or the computer, such as web servers,
tkinter windows or pygame, do not run here.