1
What Do These Expressions Mean In Python?
For the following expressions, replace a, b, c with 1 or 0 so that the expression becomes true (i.e. 1). Use the Python interpreter. Which expressions are logically equivalent? Record some of your results in truth tables.
# (a and b)
# (not a and b)
# (not (a and b))
# (a or b)
# (a or not b)
# (not (a or b))
# (not (not a or not b))
# (a and (a or b)) Does this really depend on b?
# (a and b and c)
# (a and b or c)
# (a and (b or c))
# ((a and b) or c)
# (a and b)
# (not a and b)
# (not (a and b))
# (a or b)
# (a or not b)
# (not (a or b))
# (not (not a or not b))
# (a and (a or b)) Does this really depend on b?
# (a and b and c)
# (a and b or c)
# (a and (b or c))
# ((a and b) or c)
Choose another answer as the right one
Choose another answer as the right one
Choose another answer as the right one