Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. print("enter num1")
  2. num1=(input())
  3. print("enter num2")
  4. num2=(input())
  5. print(num1+num2)
  6. try:
  7. print('the sum is',int(num1)+int(num2))
  8. except Exception as e:
  9. print(e) #printing catched error
  10. print("tis is imp")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement