rapid introduction to procedural programming this occurs and if the as variable part is giventhen inside the exception-handling suitevariable refers to the exception object if an exception occurs in the handling except blockor if an exception is raised that does not match any of the except blocks in the first placepython looks for matching except block in the next enclosing scope the search for suitable exception handler works outward in scope and up the call stack until either match is found and the exception is handledor no match is foundin which case the program terminates with an unhandled exception in the case of an unhandled exceptionpython prints traceback as well as the exception' message text here is an examples input("enter an integer"tryi int(sprint("valid integer entered:"iexcept valueerror as errprint(errif the user enters " "the output will beinvalid literal for int(with base ' but if they were to enter " "the output will bevalid integer entered many books consider exception-handling to be an advanced topic and defer it as late as possible but raising and especially handling exceptions is fundamental to the way python worksso we make use of it from the beginning and as we shall seeusing exception handlers can make code much more readableby separating the "exceptionalcases from the processing we are really interested in piece # arithmetic operators |python provides full set of arithmetic operatorsincluding binary operators for the four basic mathematical operationsadditionsubtractionmultiplicationand division in additionmany python data types can be used with augmented assignment operators such as +and *the +-and operators all behave as expected when both of their operands are integers dealing with runtime errors