def not_between(a, b):
    """Evaluates a not between b[0] and b[1]"""
    if not isinstance(b, list):
        raise TypeError('other value must be a list of length 2')

    result = b[0] <= a <= b[1]
    return False if result else True