users see tracebacks nontechnical users will be confused by themand in malicious settingattackers will learn more than you want them to know from traceback for examplethey'll know the name of your program fileand they'll see part of your code that isn' working properly skilled attacker can sometimes use this information to determine which kind of attacks to use against your code the else block we can make this program more error resistant by wrapping the line that might produce errors in tryexcept block the error occurs on the line that performs the divisionso that' where we'll put the tryexcept block this example also includes an else block any code that depends on the try block executing successfully goes in the else blockprint("give me two numbersand 'll divide them "print("enter 'qto quit "while truefirst_number input("\nfirst number"if first_number =' 'break second_number input("second number" tryanswer int(first_numberint(second_numberv except zerodivisionerrorprint("you can' divide by !" elseprint(answerwe ask python to try to complete the division operation in try block uwhich includes only the code that might cause an error any code that depends on the try block succeeding is added to the else block in this case if the division operation is successfulwe use the else block to print the result the except block tells python how to respond when zerodivisionerror arises if the try statement doesn' succeed because of division by zero errorwe print friendly message telling the user how to avoid this kind of error the program continues to runand the user never sees tracebackgive me two numbersand 'll divide them enter 'qto quit first number second number you can' divide by