will be unchangedthe while loop will continue if we preferred to have the while loop continue without printing the invalid response messagewe could have written the exception-clause as except (valueerroreoferror)pass the keywordpassis statement that does nothingyet it can serve syntactically as body of control structure in this waywe quietly catch the exceptionthereby allowing the surrounding while loop to continue in order to provide different responses to different types of errorswe may use two or more except-clauses as part of try-structure in our previous examplean eoferror suggests more insurmountable error than simply an errant value being entered in that casewe might wish to provide more specific error messageor perhaps to allow the exception to interrupt the loop and be propagated to higher context we could implement such behavior as followsage - an initially invalid choice while age < tryage int(inputenter your age in years)if age < printyour age must be positive except valueerrorprintthat is an invalid age specification except eoferrorprintthere was an unexpected error reading input raise let re-raise this exception in this implementationwe have separate except-clauses for the valueerror and eoferror cases the body of the clause for handling an eoferror relies on another technique in python it uses the raise statement without any subsequent argumentto re-raise the same exception that is currently being handled this allows us to provide our own response to the exceptionand then to interrupt the while loop and propagate the exception upward in closingwe note two additional features of try-except structures in python it is permissible to have final except-clause without any identified error typesusing syntax except:to catch any other exceptions that occurred howeverthis technique should be used sparinglyas it is difficult to suggest how to handle an error of an unknown type try-statement can have finally clausewith body of code that will always be executed in the standard or exceptional caseseven when an uncaught or re-raised exception occurs that block is typically used for critical cleanup worksuch as closing an open file