
    Given a binary representation of a bus route's operational status, determine if all segments between two specified checkpoints are currently inactive (not in service). The function should analyze the route status between checkpoint numbers l and r (inclusive) and return true if all segments in this range are inactive (represented by 0 bits), and false otherwise.
    

    
def all_Bits_Set_In_The_Given_Range(n, l, r):
    """
    Given a binary representation of a bus route's operational status, determine if all segments between two specified checkpoints are currently inactive (not in service). The function should analyze the route status between checkpoint numbers l and r (inclusive) and return true if all segments in this range are inactive (represented by 0 bits), and false otherwise.
    

    """
def all_Bits_Set_In_The_Given_Range(n, l, r):
    """
    Given a binary representation of a bus route's operational status, determine if all segments between two specified checkpoints are currently inactive (not in service). The function should analyze the route status between checkpoint numbers l and r (inclusive) and return true if all segments in this range are inactive (represented by 0 bits), and false otherwise.
    

    """
    num = (1 << r) - 1 ^ (1 << l - 1) - 1
    new_num = n & num
    if new_num == 0:
        return True
    return False