Coding · Grades 6–10

Python for Middle School: Loops, Lists, Functions and 10 Projects

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

Python 2 teaches loops, lists and functions with tracing tasks that make students predict what code does before they run it. Python Projects adds ten mini programs with clear specifications and reference code.

Trace before you type

Each concept starts on paper: students track variable values through a loop or a function call. That habit catches most beginner bugs before they happen.

Projects that stay small

The ten mini programs, such as a quiz, a grade calculator and a word counter, each take one or two lessons. A short contract says what the program must do, so grading is fair.

Where it fits

Use after a first Python unit, such as the opening of Computer Science Studio, or after Scratch for students ready to type code.

Resources for this topic

Every resource is a printable PDF download with teacher notes and answer keys. If something doesn't fit your standards, the TeachLessons Guarantee applies: we adapt it for you.

Questions teachers ask

What editor do students need?
Any Python 3 editor, including free online ones.
Is reference code included?
Yes, for all ten projects.
Is it suitable for grade 10?
Yes, especially for a first programming course.

Instant digital download. Print, project or assign today.

Browse the full collection