def do_simple_math(number1, number2, operator):
    """
    Does simple math between two numbers and an operator
    :param number1: The first number
    :param number2: The second number
    :param operator: The operator (string)
    :return: Float
    """
    ans = 0
    if operator is "*":
        ans = number1 * number2
    elif operator is "/":
        ans = number1 / number2
    elif operator is "+":
        ans = number1 + number2
    elif operator is "-":
        ans = number1 - number2
    elif operator is "^":
        ans = number1 ** number2
    elif operator is "%":
        ans = number1 % number2
    return ans