GCSE – Lesson 20 – Scope

Curriculum KS4 Unit Lesson

Learners will be introduced to the concept of scope in this lesson. They will be briefed on the definitions, before being given example programs that show how local and global scope work in Python. There is an activity where learners will convert programs that use global variables into programs that pass values through parameters instead. This demonstrates that passing values through parameters can reduce the need for global variables. Learners will be then introduced to constants and how these work in Python before completing a lesson quiz.

Learning objectives

  • Describe scope of variables
  • Describe how parameters can reduce the need for global variables
  • Identify when to use global variables
  • Describe a constant

Package contents

  • Lesson plans
  • Slide decks
  • Learner resources
  • Homework