Single lesson · Key Stage 3

From blocks to text: print – Year 7 Computing lesson

Pupils learn to write and run a Python program that uses print to output text, and fix syntax errors by reading the error message.

Also in a bundle Introduction to Python – Year 7 Computing lessons 6 lessons for £20 · save 16% on buying separately

Lesson 1 of 6 in unit 7.6 Introduction to Python, taught in Year 7, Summer 2. It answers one big question: How do we give a computer instructions in text, not blocks?

By the end, pupils can write and run a Python program that uses print to output text, and fix syntax errors by reading the error message.

The Build (the main task)
Write a Python program that prints a pancake recipe card: a title, three ingredients and one method step, each on its own line, with no syntax errors.
Support version
Parsons problem: the print lines are jumbled and one extra line has a syntax error, for pupils to order and cross out.
Challenge
Find and fix the three syntax errors in a broken recipe program, and explain each fix.
Real-world link
The food technology department wants a recipe helper program; today it prints a recipe card on screen.
Key words
High-level language, Syntax and Precise, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“Python will follow an instruction that is nearly right, such as Print("Hello") or print(Hello)”; “print("2 + 3") shows 5”.
National Curriculum
NC3 (two or more languages, at least one textual; data structures; modular programs with procedures or functions); NC4 (boolean logic (AND, OR, NOT) in circuits and programming; binary numbers, addition and conversion).

Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.

Pupils need computers for the main task.

Also sold in the Introduction to Python unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.

What's included

  • Slide deck (PowerPoint)
  • Lesson plan (Word)
  • Worksheet (Word)
  • Support worksheet with scaffolds (Word)
  • Single-teacher licence: use and adapt it with your own classes

More for KS3 Computing

See all

Written for the specifications named. Not endorsed by or affiliated with any exam board.