Python Forum

Full Version: logic in a list
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i have a list (or tuple) of logic settings. the length varies. any items set to None mean that item is not set and does not determine true or false. otherwise, the expected values are either True or False (bool). i need to know if the list (or tuple) has both a True and a False (a conflict). and if not, i need to know what true/false value the list (or tuple) has, if any. are there any tools that are part of Python that can do this? if not, i'll need to include code to do this.
You'll need to include code. This is not part of the standard library.