Coding · Grades 3–9

Teaching Coding in Middle School: Python, Scratch and Algorithms

See the resources 11 ready-to-teach resources
Quick answer

Begin with algorithms on paper, use Scratch for Grades 3 to 6 and move to Python from Grade 6 or 7 with very small programs: print, variables, if/else, loops and a short project.

Scratch or Python first?

For Grades 3 to 6, block-based Scratch lets students build something that works in the first lesson. From Grade 6 or 7, Python is manageable if the first programs are tiny and students type them, run them and change them.

Start with algorithms on paper

Before any code, have students write exact instructions for an everyday task and let a partner follow them literally. The bugs that appear teach sequence, loops and conditions faster than a definition does.

A first Python unit

  1. Print and input.
  2. Variables and simple calculations.
  3. If and else.
  4. Loops.
  5. A small project, such as a quiz or number game.

Each unit comes with worksheets, a project and slides, so a non-specialist can teach it with a lesson of preparation.

Questions teachers ask

Should middle school students learn Scratch or Python?
Scratch suits Grades 3 to 6; Python is manageable from about Grade 6 or 7 when programs start small.
Can a non-specialist teach these coding units?
Yes. The units include worksheets, a project and slides with the steps laid out.
What do students need installed?
A browser-based or installed Python environment for the Python unit and Scratch for the Scratch unit. The algorithm lessons need no devices.

Instant digital download. Print, project or assign today.

Browse the full collection