GCSE – Lesson 21 – XOR
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.
- Use a truth table
- Describe the function of an XOR operator
- Design and create a function for an XOR operator
- 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.