other sources of errors as well python has general set of tools for handling such errors that is commonly referred to as exception handlingand it used in many different programming languages to illustrate how it workslet us return to the example with the atmospheric pressure formulaimport sys from math import exp sys argv[ float(hp print( exp(- / )as mentioned abovethis code can easily break if the user provides command line argument that cannot be converted to floatthat isany argument that is not pure number potentially even worse is our program failing with fairly cryptic error message if the user does not include command line argument at allas in the followingterminal terminalpython altitude_cml py traceback (most recent call last)file "altitude_cml py"line in sys argv[ indexerrorlist index out of range how can we fix such problems and make the program more robust with respect to user errorsone possible solution is to add an if-test to check if any command line arguments have been includedimport sys if len(sys argv print('you failed to provide command line arg !'exit(abort float(sys argv[ ] print( exp(- / )the function call exit(will simply abort the programso this extension solves part of the problem the program will still stop if it is used incorrectlybut it will provide more sensible and useful error messageterminal terminalpython altitude_cml py you failed to provide command line arg