Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from colorama import init
- from colorama import Fore, Back, Style
- init()
- print( Back.CYAN )
- what = input( 'Что мы делаем? (+, -):' )
- a = float(input( 'Введи первое число: '))
- b = float(input( 'Введи второе число: '))
- if what == '+':
- c = a + b
- print('Результат: '+str(c))
- elif what == '-':a
- c = a - b
- print('Результат: ' + str(c))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement