Validated user input (ensure correct/expected data entry)

--Originally published at Start in the world of the #TC101

An important part of making sure your program is as robust as possible is checking the user’s input to make sure they’ve entered the right sort of information. Here’s a simple example that illustrates the concept.

15135657_1123641437683377_1348959859_n.jpg

Reference:

https://a00344371.wordpress.com/2016/11/23/validated-user-input/

http://openbookproject.net/pybiblio/tips/wilson/validating.php