def hasBothOrNeitherAngleBrackets(string):
    """Make sure a string either has both '<' and '>' or neither of those angle brackets."""
    left_angle_bracket_in_string = '<' in string
    right_angle_bracket_in_string = '>' in string
    if left_angle_bracket_in_string and right_angle_bracket_in_string:
        return True
    elif left_angle_bracket_in_string or right_angle_bracket_in_string:
        return False
    else:
        return True
