Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("enter num1")
- num1=(input())
- print("enter num2")
- num2=(input())
- print(num1+num2)
- try:
- print('the sum is',int(num1)+int(num2))
- except Exception as e:
- print(e) #printing catched error
- print("tis is imp")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement