--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.
Reference:
https://a00344371.wordpress.com/2016/11/23/validated-user-input/
http://openbookproject.net/pybiblio/tips/wilson/validating.php