outputquotient multiple except blocks oftenthere will be need to handle more than one exception raised by try block to handle multiple exceptionswe can write multiple except blocks as shown belowtrystatement(sexcept exceptionname statement(sexcept exceptionname statement(sfollowing is an example for handling multiple exceptions using multiple except blocksnumerator int(input()denominator int(input()tryquotient numerator denominator print("quotient:"quotientexcept nameerrorprint("you are using variable which is not declared"except valueerrorprint("invalid value"except zerodivisionerrorprint("denominator cannot be zero"in the previous example for input and the output displayed is "denominator cannot be zerowhen the divide by zero exception was triggered in try blockfirst two except blocks were skipped as the type of exception didn' match with either nameerror or valueerror sothird except block was executed multiple exceptions in single block we can handle multiple exceptions using single except block as followstrystatement(sexcept(exceptionname exceptionname )statement(sfollowing is an example which demonstrates handling multiple exceptions using single except block