Python playground.
Type something. Run it. See what happens. This is your space to experiment, make mistakes, and surprise yourself.
Try a little print(), a loop, or a completely new idea. Your draft stays in this browser when storage is available.
Edit the code. Then run it. Ctrl / ⌘ + Enter also works.
Your program’s output will appear here. Ready when you are. ✦
The first run loads Python. This can take a moment.
Program input For programs that use input()
Add answers before you run. Each input() reads the next line. Use made-up names and details.
Real Python, powered by Pyodide. Standard-library programs work here; desktop windows, turtle graphics, and package installation are not supported by this editor. Programs stop after 10 seconds of execution.
Need a starting point?
Follow a short lesson, then bring your new idea back here.
Explore the Python trail →Got a red message?
That’s a clue, not a failure. The last line often explains which bit needs attention.
Practice finding bugs →Keep your creation
Use Download .py to keep a file of your code. Programs run on your device. Don’t type personal information into your projects.