def calculate_polynomial_term(coefficient, variable, order):
    """Calculates a term in a polynomial.

    Args:
        coefficient (float): The coefficient to use in
            calculating the polynomial term.
        variable (float): Value to plug in for the variable in the polynomial
            term.
        order (int): Integer to use as the order of the polynomial term.

    Returns:
        float: The result of coefficient * variable**(order)

    Raises:
        TypeError: A non-integer order is given.
    """
    if type(order) != int:
        raise TypeError('Non-integer order in polynomial term')
    else:
        return coefficient * variable**(order)