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 number between and ")except (valueerrorkeyboardinterrupt)print("you must type number between and !"elseif (value and (value < )print("you typed"valueelseprint("the value you typed is incorrect!"this code is very much like the basicexception py howevernotice that the except clause now sports both valueerror and keyboardinterrupt exception in additionthese exceptions appear within parentheses and are separated by commas choose runrun module you see python shell window open the application asks you to type number between and type hello and press enter the application displays an error message (refer to figure - perform steps and againbut type instead of hello the application outputs the expected range error message (refer to figure - perform steps and againbut press ctrl+ccmd+cor the alternative for your platform instead of typing anything you see the error message that' usually associated with error input (refer to figure - perform steps and againbut type instead of hello this timethe application finally reports that you've provided correct value of handling multiple exceptions with multiple except clauses when working with multiple exceptionsit' usually good idea to place each exception in its own except clause this approach allows you to provide custom handling for each exception and makes it easier for the user to know precisely what went wrong of coursethis approach is also lot more work