def x_inbetween_range(x, rng):
    """
    Determining if the input is inbetween a range.
    :param x:
    :param rng:
    :return:
    """
    start_rng = min(list(rng))
    stop_rng = max(list(rng))
    return x >= start_rng and x <= stop_rng
