teach-ict.com logo

THE education site for computer science and ICT

1. Introduction

Any time that a program asks the user for information, there is a chance that the user will input something unexpected.

Well written, robust programs should be able to deal with the input data, checking that the inputs match expectations and rejecting those which do not.

This is called data validation, and we will go over some of the basic checks that you are expected to be able to reproduce in your own programs.

We will also include an example of a validation subroutine using Python.

 

 

image