Computer Science

What will be the output produced?

x, y, z = True, False, False
a = x or (y and z)           
b = (x or y) and z           
print(a, b)

Python

Python Data Handling

24 Likes

Answer

True False

Working

  1. x or (y and z)
    ⇒ True or (False and False)
    ⇒ True
  2. (x or y) and z
    ⇒ (True or False) and False
    ⇒ True and False
    ⇒ False

Answered By

14 Likes


Related Questions