Write a Python program input and add two integers only and handle the exceptions.
Problem Solution: In this program, we are reading two integers number from the user using int(input()) and handling the following exceptions,
- ValueError – Occurs when input value is not an integer.
- ZeroDivisionError – Occurs when divisor is zero.
- Exception – Any other error.
Python program to add two integers with handling expectations
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer