def bool_to_one_or_zero(value):
    """
    Converts a boolean value into an integer

    :param value: A boolean value
    :type value: bool
    :return: 1 or 0
    :rtype: int
    """
    return 1 if value else 0