Try and Except

 

try:
    x=int(input("enter a number: "))

    y=int(input("enter a number: "))
    print(x+y)
except Exception as e:
    print(e)
print("deep")


Comments

Popular posts from this blog

Become Healthy Goal - Python Program

Calculator in C++

Interpretation vs Compilation