Moving from Scratch to Python: A Step-by-Step Guide for Kids
Scratch is a wonderful first language. Many kids reach a point where they want to "type real code", and Python is the most common next step. The good news: almost everything they learned in Scratch carries over.
Scratch blocks in Python
| Scratch | Python |
|---|---|
| say [Hello!] | print("Hello!") |
| set [score] to 0 | score = 0 |
| change [score] by 1 | score = score + 1 |
| repeat 10 | for i in range(10): |
| repeat until <hp = 0> | while hp != 0: |
| if <> then … else | if …: / else: |
| make a list | bag = [] |
| define my block | def my_block(): |
What is actually new
- Typing and spelling. In Scratch a block cannot be misspelled. In Python,
prntis an error. - Indentation replaces the block "mouth". The lines inside a Scratch repeat block become indented lines in Python.
- Error messages. Scratch never shows errors. Python does, and learning to read them is part of the fun.
- Fewer sprites at first. Python starts with text. That is why game-style practice helps: it brings the visual reward back.
A Scratch-style program in Python
score = 0
for i in range(5):
score = score + 10
print("Score:", score)
if score >= 50:
print("You win!")
Tips for a smooth switch
- Rebuild a small Scratch project they already know, in Python.
- Keep sessions short (15–20 minutes) at first; typing is tiring.
- Celebrate each error they fix on their own.
- Choose projects with visible results: a talking pet, a battle, a quiz.
Code Monsters Academy was designed for exactly this moment: real typed Python, but with monsters and battles so it still feels like a game.