# allOperations.py # two ints or floats, do all 7 arithmetic operations num1 = 17 num2 = 4 sum_total = num1 + num2 #addition difference = num1 - num2 #subtraction product = num1 * num2 #multiplication quotient = num1 / num2 #division iquotient = num1 // num2 #integer division remainder = num1 % num2 #remainder (modulus, "mod") power = num1 ** num2 #exponentiation print("sum: ", sum_total) print("difference: ", difference) print("product: ", product) print("quotient: ", quotient) print("iquotient: ", iquotient) print("remainder: ", remainder) print("power: ", power) # Try: # negative integers, floats 5.0 7.0 #try making the num2 0 and see the runtime error. # re-arrange prints to be after each calculation #more complex expression:2*num1 + 4*num2 x = 2*num1 + 4*num2 print("x: ",x)