You are on page 1of 1

from colorama import init

from colorama import Fore, Back, Style

init()

print( Fore.WHITE )
print( Back.BLUE )

what = input( "what we gonna do? (+, -, *, /, %): " )

print( Back.RED )

a = float( input("first number: ") )


b = float( input("second viber: ") )

print( Back.YELLOW )

if what == "+" :
c = a + b
print("result: " + str(c))

if what == "*":
c = a * b
print("result: " + str(c))

if what == "/":
c = a / b
print("resultт: " + str(c))

if what == "%":
c = a % b
print("result: " + str(c))

elif what == "-" :


c = a - b
print("result:" + str(c))
else:
print("error!")

input()

You might also like