below sea levelto around km above sea level we can therefore let the program raise valueerror for any outside this rangeeven if it does not involve python error in the usual sense the following code shows how we can use the function aboveand how we can catch and print the error message provided with the exceptions the construction except as is used to access the error and use it inside the except blockas followstryh read_altitude(except (indexerrorvalueerroras eprint exception message and stop the program print(eexit(we can run the code in the terminal to confirm that we obtain the correct error messagesterminal terminalpython altitude_cml_except py the altitude must be supplied on the command line terminalpython altitude_cml_except py altitude must be numbernot terminalpython altitude_cml_except py the formula is not valid for = terminalpython altitude_cml_except py making modules so far in this course we have frequently used modules such as math and sysby importing them into our codefrom math import log log( call log function in math module import sys eval(sys argv[ ]access list argv in sys module modules are extremely useful in python programssince they contain collection of useful data and functions (as well as classes later)that we can reuse in our code but what if you have written some general and useful functions yourself that you would like to reuse in more than one programin such cases