Pratch.

VISUAL PYTHON STUDIO

Pratch
Learn Python with Blocks

Pratch is a free visual Python playground. Snap blocks together, see the Python they create, and practice with 26 step-by-step missions.

Your first loop

Blocks

repeat 3 times
print(number)

Python

for number in range(3):
    print(number)

Output

0
1
2

Clear workspace?

This clears the current Python and blocks. An existing cloud save stays as it is until you save again.

Your missions

Mission complete!

Workspace tools

Checkpoints

Test bench

Enter one answer per line and the output you expect. Each test starts a fresh Python run.

Predict, then run

Edit Python block