GCSE – Lesson 15 – Data validation

Curriculum KS4 Unit Lesson

Learners will spend this lesson finding out how to effectively add data validation techniques to their programs. They will learn why they are important, and how to incorporate them. Before this lesson, learners have only used a try and except technique that works once, then breaks the second time. This lesson will show them how to incorporate try and except inside a while loop. It will also show learners how to check the range of a value and if a user input has been left empty.

Learning objectives

  • Determine the need for validation checks
  • Use iteration to perform validation checks

Package contents

  • Lesson plans
  • Slide decks
  • Learner resources
  • Homework