pastebin

Paste Search Dynamic
Recent pastes
Invalid
  1. d=0
  2. try:
  3.     a=eval(input("ENTER FIRST NUMBER:" ))
  4.     print(type(a))
  5.     """a.isdigit()"""
  6.     b=eval(input("ENTER THE SECOND OUTPUT:"))
  7.     print(type(b))
  8. except:
  9.     """print("INVALID ")"""
  10.     print("INVALID OPTION")
  11.     d=1
  12. if d!=1:
  13.     print("YOUR OPTIONS ARE: 1.ADDITION 2.SUBTRACTION 3.MULTIPLICATION 4.DIVISION 5.MODULUS")
  14.     c=int(input("KINDLY ENETR YOUR CHOICE:"))
  15.     if c==1:
  16.         print(a+b)
  17.     elif c==2:
  18.         print(a-b)
  19.     elif c==3:
  20.         print(a*b)
  21.     elif c==4:
  22.         if a==0 or b==0:
  23.             print("INVALID DIVISION")
  24.         else:
  25.             print(a/b)
  26.     elif c==5:
  27.         print(a%b)
  28. else:
  29.     print("SORRY RUN AGAIN")
Parsed in 0.009 seconds