Now that you know what exception types to expect, you can modify your application to handle each one by responding with helpful user prompts. Your customers will thank you one day!
except Exception as e: print("Exception = ", e) et = type(e) print("Exception type = ", et)
...to this:
except (TypeError, ValueError): print("Expected a number.") except ZeroDivisionError: print("Can't divide by zero.")