GCSE – Lesson 20 – Scope
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.
- Describe scope of variables
- Describe how parameters can reduce the need for global variables
- Identify when to use global variables
- Describe a constant
- Lesson plans
- Slide decks
- Learner resources
Don't have an account?
Enjoyed teaching these lessons? Found a mistake?
Fill in a short form to give feedback on these resources.