open python file window you see an editor in which you can type the example code type the following code into the window -pressing enter after each linetryvalue int(input("type the first number")value int(input("type the second number")output value value except valueerrorprint("you must type whole number!"except keyboardinterruptprint("you pressed ctrl+ !"except arithmeticerrorprint("an undefined math error occurred "except zerodivisionerrorprint("attempted to divide by zero!"elseprint(outputthe code begins by obtaining two inputsvalue and value the first two except clauses handle unexpected input the second two except clauses handle math exceptionssuch as dividing by zero if everything goes well with the applicationthe else clause executeswhich prints the result of the operation choose runrun module you see python shell window open the application asks you to type the first number type hello and press enter as expectedpython displays the valueerror exception message howeverit always pays to check for potential problems choose runrun module again you see python shell window open the application asks you to type the first number type and press enter the application asks you to enter the second number