Alice, Bob, Charlie, David, and Eve are friends trying to decide whether to go skiing or study next weekend. Each casts a vote. Let their votes be de- noted by predicates a, b, c, d, and e where each is True if the preference is for skiing, and False if the preference is for studying. Write a python formula (using and, or, not, and parentheses – no ”if” statements or other Python operators allowed) that is True if the majority wants to ski, and False if the majority wants to study. Note that you can break long lines in Python with a backslash.
Hint: Do not make a function. The answer should be a single expression using variables a, b, c, d and e, plus operators and, or and not.
Example:
(a or b or c) and (a or b or d)
question from:
https://stackoverflow.com/questions/66061377/developing-expressions-using-and-or-not 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…