GCSE – Lesson 21 – XOR

Curriculum KS4 Unit Lesson

Learners were introduced to logic operators in Lesson 10. At that point, they could only use AND and OR. Learners also need an understanding of how the XOR operator works. Python doesn’t have an XOR operator, so they will be creating their own function for one this lesson. Learners will be reminded of AND and OR and then introduced to truth tables. They will learn about XOR and complete a truth table for the operator. Next, they will dive into designing and creating a function for an XOR operator using worked examples for support.

Learning objectives

  • Use a truth table
  • Describe the function of an XOR operator
  • Design and create a function for an XOR operator

Package contents

  • Lesson plans
  • Slide decks
  • Learner resources
  • Homework