Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
logic in a list
#1
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.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
You'll need to include code. This is not part of the standard library.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020