end of the program except block without exception we can even specify except block without mentioning any exception in large software programsmany timesit is difficult to anticipate (guessingall types of possible exceptional conditions therefore programmer may not be able to write different handler for every exception in such situationa better idea is to write handler that would catch all types of exceptions this must me the last one that can serve as wildcard syntax will be as followtrystatements except exception statements except exception statement exceptexecute this blockif an exception match is found example program testexcept py #read the data 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"exceptprint("unexpected error terminating program:"print("end of the program"output enter value of : enter value of yunexpected error programend of the program terminating the the the else clause the tryexcept block can also have an else clausewhichwhen present must follow all except blocks the statements in the else block only executedif the try clause does not raise an exception page