Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (11 sloc) 521 Bytes
calculator = input("What calculation would you like to do?")
calc = int(input("Enter one number."))
calc_two = int(input("Enter a second number."))
if calculator == "add" :
print("Your result is " + str(calc + calc_two) + ". Calc u later!")
elif calculator == "sub" :
print("Your result is " + str(calc - calc_two) + ". Calc u later!")
elif calculator == "mult" :
print("Your result is " + str(calc * calc_two) + ". Calc u later!")
else :
print("Your result is " + str(calc / calc_two) + ". Calc u later!")