figure - providing usable input results in usable output nested exception handling sometimes you need to place one exception-handling routine within another in process called nesting when you nest exception-handling routinespython tries to find an exception handler in the nested level first and then moves to the outer layers you can nest exception-handling routines as deeply as needed to make your code safe one of the more common reasons to use dual layer of exception-handling code is when you want to obtain input from user and need to place the input code in loop to ensure that you actually get the required information the following steps demonstrate how this sort of code might work this example also appears with the downloadable source code as multipleexception py open python file window you see an editor in which you can type the example code