user input and error handling altitude hp - / where is the pressure at sea level kpaand is the so-called scale height kma python program for evaluating this formula could look like from math import exp #sea level pressure (kpa#scale height (mh exp(- / print(pof coursewe are usually interested in evaluating the formula for different altitudeswhichin this codewould require editing the line to change the respective variableand then rerunning the program this solution could be acceptable for programs we write and use ourselvesbut it is not how we are used to interacting with computers in particularif we write programs that could be used by othersediting the code this way is inconvenient and can easily introduce errors for our programs to be robust and usablethey need to be able to read relevant input data from the user we will consider three different ways to accomplish thiseach with its strengths and weaknesses we will (icreate programs that stop and ask for user inputand then continue the execution when the input is received(iienable our programs to receive command line argumentsthat isarguments provided when we run the program from the terminaland (iiimake the programs read input data from files obtaining input from questions and answers natural extension of this program is to allow it to ask the user for value of hand then compute and output the corresponding atmospheric pressure python function called input provides exactly this functionality for instance line such as input('input the altitude (in meters):'will make the program stop and display the text input the altitude (in meters)in the terminaland then continue when the user presses enter the complete code could look like from math import exp input('input the altitude (in meters):' float(hp #sea level pressure (kpa#scale height (mp exp(- / print(