How can I give a truth-value assignment for variables in order for an expression to be false?

Viewed 32

Given a set of Boolean conditions A, B, C and D. a. Give a truth-value assignment for A, B, C and D that can make the expression �̅∨ � ∨ �̅∨ � to be evaluated as false.

I cannot understand what means "to give a truth- value assignment.

I tried in Python this code:

if a != a or b or c != c or d:
       print("True")
   else:
      print ("False")
Output
 False
1 Answers

a!=a is always false because a statement cant be True and False at the same time. Use (not a) instead.

Your example should look like this:

if not a or b or not c or d:
       print("True")
   else:
      print ("False")
Related