#Calculatorloop = 1while loop == 1: print "\nWhich Mathamatical operator do you want?\n" print "Option 1 - Add" print "Option 2 - Subtract" print "Option 3 - multiply" print "Option 4 - divide" print "Option 5 - quit program" option = input("\nenter your option: ") #normally takes input as a string, but converted to integer with int() if option == 1: print "You'd like to add numbers?" firstnumber = int(raw_input("Enter your first number: ")) secondnumber = int(raw_input("Enter your second number: ")) print "Your answer is: ", print firstnumber + secondnumber elif option == 2: print "You would like to subtract numbers?" firstnumber = int(raw_input("Enter your first number: ")) secondnumber = int(raw_input("Enter your second number: ")) print "Your answer is: ", print firstnumber - secondnumber elif option == 3: print "You would like to multiply numbers?" firstnumber = int(raw_input("Enter your first number: ")) secondnumber = int(raw_input("Enter your second number: ")) print "Your answer is: ", print firstnumber * secondnumber elif option == 4: print "You would like to divide numbers?" firstnumber = int(raw_input("Enter your first number: ")) secondnumber = int(raw_input("Enter your second number: ")) print "Your answer is: ", print firstnumber / secondnumber elif option == 5: loop = 0print "Thanks for using"