let' write some code to see what happens when you not use any error handling mechanism in your program number int(input('please enter the number between ')print('you have entered number',numberabove programme will work correctly as long as the user enters numberbut what happens if the users try to puts some other data type(like string or listplease enter the number between 'hitraceback (most recent call last)file " :/python/python /exception py"line in number int(input('please enter the number between ')valueerrorinvalid literal for int(with base "'hi'now valueerror is an exception type let' try to rewrite the above code with exception handling import sys print('previous code with exception handling'trynumber int(input('enter number between ')except(valueerror)print('error numbers only'sys exit(print('you have entered number',numberif we run the programand enter string (instead of number)we can see that we get different result previous code with exception handling enter number between 'hierror numbers only