Skip to content

Debug It, Then Build On It: Python Functions

A Year 8 Digital Technologies Python lesson: students fix four bugs (two syntax errors, a NameError and a logic error) in a sports carnival points program, then modify it with a new rule and a house_total function and test it.
Lesson planTechnologiesYear 8Shared by Heapso

Preview

Answers and teacher notes are hidden here. Verified teachers see them once it's copied into Heapso.

Year 8Technologies 60 minAC9TDI8P09: implement, modify and debug programs involving control structures and functions in a general-purpose programming language
Key competenciesDigital LiteracyCritical and Creative ThinkingNumeracy

Lesson sequence

60 min total

Key vocabulary

Differentiation

© Australian Curriculum, Assessment and Reporting Authority (ACARA) 2010 to present, unless otherwise indicated. This material was downloaded from the Australian Curriculum website (accessed 18 October 2026) and was not modified. The material is licensed under CC BY 4.0.

Licence: CC BY 4.0. ACARA's terms of use. Heapso isn't affiliated with ACARA, and ACARA doesn't endorse Heapso or any product that uses the Australian Curriculum.

The Australian Curriculum website