def is_bit_set(value, bit):
    """
    Return True/False if the bit at offset >bit< is 1 or 0 in given value.

    bit 7 |      | bit 0
       ...10111101

    e.g.:

    >>> is_bit_set(0x01, bit=0) # 00000001
    True
    >>> is_bit_set(0xfd, bit=1) # 11111101
    False
    >>> is_bit_set(int('10000000', 2), bit=7)
    True
    >>> is_bit_set(int('01111111', 2), bit=7)
    False
    >>> is_bit_set(int('1111000011110000', 2), bit=11)
    False
    >>> is_bit_set(int('1111000011110000', 2), bit=12)
    True
    """
    return False if value & 2 ** bit == 0 else True
