Exception is not working here,when i m entering a

try:
a=int(input(“Enter a no-”))
b=int(input(“Enter 2nd NO-”))
except:
print(“Entered Data is not a String”)
finally:
x = a + b
print(‘Addition of 2 No-’,x)

1 Like