def evaluate(v1, v2, operator):
    """Evaluation function for two values and an operator.

    Args:
        v1 (obj): object one
        v2 (obj): object two
        operator (string): operator that is being used

    Returns:
        bool: result of the equation v1 operator v2
    """
    if operator == '==':
        return v1 == v2
    elif operator == '<=':
        return v1 <= v2
    elif operator == '>=':
        return v1 >= v2
    elif operator == '!=':
        return v1 != v2
    elif operator == '>':
        return v1 > v2
    elif operator == '<':
        return v1 < v2