Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 8th, 2020 187 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. while True:
  3.   str = input()
  4.   if str == 'exit':
  5.     break
  6.   a, sign, b = str.split(" ")
  7.   a = int(a)
  8.   b = int(b)
  9.  
  10.   if sign == '+':
  11.     print(a + b)
  12.   elif sign == '-':
  13.     print(a - b)
  14.   elif sign == '*':
  15.     print(a * b)
  16.   elif sign == '/':
  17.     if(b == 0):
  18.       print("zachem ty delish na 0, 3.14door")
  19.     else:
  20.       print(a / b)
  21.   elif sign == '%':
  22.     print(a % b)
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
Top