SHARE
TWEET

Untitled

a guest Oct 19th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a = input('vvedite a')
  2. b = input('vvedite b')
  3. a = int(a)
  4. b = int(b)
  5.  
  6. operator = input('input operatop')
  7.  
  8. result = None
  9. if operator == '*':
  10.     result = a * b
  11. elif operator == '+':
  12.     result = a + b
  13. elif operator == '-':
  14.     result = a - b
  15. elif operator == '/':
  16.     result = a / b
  17. else:
  18.     print_('error')
  19. print("resultat", result)
  20.  
  21.  
  22.  
  23. #print(f'result= {result}')
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top