Write the output of the following python expression: print((4>5) and (2!=1) or (4 < 9)),
Answers
Answered by
13
Answer: True
Explanation:
It would be
=> False and True or True
=> False or True
=> True
Answered by
1
The output is True.
Given:
print((4>5) and (2!=1) or (4 < 9))
To Find:
The output of the Python expression
Solution:
We will see the expressions one by one according to the operators.
The first part is 4>5, which is False.
The second part is 2!=1, which is True.
The third part is 4<9, which is also true.
Therefore the expression deduces to
False and True or True.
The expression deduces to False or True.
False and True is False.
False or True is True.
Hence the Final answer is True.
#SPJ2
Similar questions