testexcept py tryx=int(input("enter value of :") =int(input("enter value of :")print( ** /yexcept (typeerror)print("choose the correct type of value:"except (zerodivisionerror)print("the value of should not be zero"except (valueerror)print("unexpected error terminating program:"elseprint("program execution is successful "print("end of the program"output enter value of : enter value of : program execution is successful end of the program the raising the exception we can also deliberately raise the exception using the raise keyword the syntax is as followraise [exception-nameexample programtestexcept py tryx=int(input("enter value of :") =int(input("enter value of :")print( ** /yraise zerodivisionerror exceptprint("the value of should not be zero"output enter value of : enter value of : the value of should not be zero end of the program handling exceptions in invoked functions we can also handle exceptions inside the functions using the try-except blocks funexcep py def division(num,deno)tryr=num/deno print("the quotient is:",rexcept zerodivisionerrorprint("you cannot divide number by zero"#function call =int(input("enter value:") =int(input("enter value:")division( , page output enter value: enter value: you cannot divide number by zero ======restarte:/python/funexcep py =======enter value: enter value: the quotient is