try except and exceptoin handling

 num1=input("enter number:")

num2=input("enter number:")
try:
print("num1 + num2 is",int(num1)+int(num2))
except Exception as harish:
print(harish)
print("this line is very important")

Comments

Popular posts from this blog

Steps taken by a compiler to execute a C program

Tokens in C

Variables and Data Types in C