in the previous examplewe did not mention any exception in except clause this is not good programming practice as it will catch all exceptions and handle every case in the same way we can specify which exceptions an except clause will catch try clause can have any number of except clause to handle them differently but only one will be executed in case an exception occurs examplewhile truetryx int(input("please enter number")break except valueerrorprint("oopsthat was no valid number try again "exampletryx / except zerodivisionerror as eprint('handling 'type( ) = outputhandling it is good practice to specify which exceptions should be caught for examplethis program triggers zerodivisionerror error when called with and typeerror called it with str or some other value that doesn' work in numeric division thereforewe can specify that we want to catch only those two exceptionsand in addition specify that we want to keep the exception object as the variable the except clause with multiple exceptions an except clause may name multiple exceptions as parenthesized tuple we can use tuple of values to specify multiple exceptions in an except clause examplewhile truetrynum int(input("enter the number ")re /num except valueerrorprint("value is not int type"page