Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. from colorama import init
  2. from colorama import Fore, Back, Style
  3. init()
  4. print( Back.CYAN )
  5. what = input( 'Что мы делаем? (+, -):' )
  6. a = float(input( 'Введи первое число: '))
  7. b = float(input( 'Введи второе число: '))
  8. if what == '+':
  9.     c = a + b
  10.     print('Результат: '+str(c))
  11. elif what == '-':a
  12. c = a - b
  13. print('Результат: ' + str(c))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement