def get_bit(value: int, index: int) ->int:
    """
    Get the bit on index.

    Parameters
    ----------
    index : int
        The index of the bit to get
    value : int
        The value of the byte (represented by an int) from which to get the index bit

    Returns
    -------
    int
        The changed value (with the set bit)
    """
    return value & 1 << index != 0
