a guest Jun 20th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand