Boolean operators aren’t just evaluated from left to right. Just like with arithmetic operators, there’s an order of operations for boolean operators:
notis evaluated first;
andis evaluated next;
oris evaluated last.
True or not False and False returns
True. If this isn’t clear, look at the Hint.
() ensure your expressions are evaluated in the order you want. Anything in parentheses is evaluated as its own unit.
False as appropriate for
bool_oneequal to the result of
False or not True and True
bool_twoequal to the result of
False and not True or True
bool_threeequal to the result of
True and not (False or False)
bool_fourequal to the result of
not not True or False and not True
bool_fiveequal to the result of
False or not (True and True)