Run Python in your browser
Type Python, press Run. Turtle drawings, input() and beginner-friendly error messages work with no sign-up. Share any program as a link, or embed it in Google Sites, Canvas or a blog.
This code came from a shared link. Edits update this page's address, and your own saved code on this page is left alone.
Tab indents. Press Esc then Tab to leave the editor. Ctrl+Enter runs.
Press Run.
How to use it
- Pick an example or type your own code. Tab indents, and Enter keeps the indent going after a colon.
- Press Run, or Ctrl+Enter. Output appears on the right. If your code calls
input(), a box appears in the output. Type your answer and press Enter. - Code that imports
turtledraws above the output. - Press Stop to end a program that runs forever.
- Press "Share or embed" for a link, or an iframe to paste into a class website.
Error messages in plain words
When something goes wrong, the output shows the line number, Python's own message, and a hint written for beginners. The line number turns red in the margin.
if x == 3with no colon: "A line that starts with "if" needs a colon ( : ) at the end."Print("hi"): "Python cares about capital letters. Did you mean print?""Age: " + 12: "You are mixing text and numbers. Use str(x) to turn a number into text…"
What runs your code
The editor runs Skulpt, an open-source Python interpreter that works inside the browser, set to Python 3 rules. It covers what most classes use: print, input, loops, functions, lists, dictionaries, classes, and the turtle, random, math and time modules. It does not run packages you would install with pip, like numpy or pandas, and it can't open files on your computer.
FAQ
Do students need an account?
No. Open the page and press Run. Nothing to install and no email needed.
Where is my code saved?
In your browser's local storage, on this device, separately for each page of this site. Clearing site data removes it. To keep code safe or move it to another device, use Share and save the link.
Does it work on a phone, iPad or Chromebook?
Yes. It runs in any current browser. The editor is a plain text box, so phone keyboards work too.
Is this real Python?
It runs Python 3 code through Skulpt, a Python interpreter written in JavaScript. Beginner programs behave like standard Python. Some advanced features and pip packages are not available.
Pro for teachers: classes
Make a class and assign exercises with one link. Students open it, write their code and press Submit with just a name you choose for them. No student accounts and no student emails. You see every student's code and output in one list, and can run any of them.
This is an early project. Leave your email and we'll write only about the Pro version.