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
- x or (y and z)
⇒ True or (False and False)
⇒ True - (x or y) and z
⇒ (True or False) and False
⇒ True and False
⇒ False
Answered By
14 Likes