def weekday_to_bits(int):
    """
    Converts a weekday integer to its associated bit value.

    :param int: The integer corresponding to a datetime.weekday().

    :return: A bit value.
    """
    return {
        0: 0b1,
        1: 0b10,
        2: 0b100,
        3: 0b1000,
        4: 0b10000,
        5: 0b100000,
        6: 0b1000000
    }[int]