exceptions are placed in try block code that handles the exception is placed in except block the code that handles an exception is known as exception handler and this process is known as exception handling try and except syntax for using try and except for exception handling is as followstrystatement(sexcept exceptionnamestatement(sfollowing is an example for handling divide by zero exception using try and except blocksnumerator int(input()denominator int(input()tryquotient numerator denominator print("quotient:"quotientexcept zerodivisionerrorprint("denominator cannot be zero"input outputdenominator cannot be zero input