Skip to the workspace
Pebellslearn by building
Python · A space to experiment

Make room for an idea.

Write any Python here and press Run to execute it. Great for testing an idea, checking what a built-in does, or just messing around.

for i in range(5):
    print(i, i ** 2)

⌘ / Ctrl + EnterRun your code

scratch.py
Press Run to execute your code.
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.