Computer Science

Evaluate the following expression:

10 > 5 and 7 > 12 or not 18 > 3

Python Data Handling

6 Likes

Answer

10 > 5 and 7 > 12 or not 18 > 3
= True and False or not True
= True and False or False
= False or False
= False

The above expression evaluates comparisons (>, <) first, applies the boolean 'not' operator next, evaluates the boolean 'and' operator finally, and evaluates the boolean 'or' operator last.

Answered By

1 Like


Related Questions