9. This and That (or This, But Not That!) Mistake


#1



9. This and That (or This, But Not That!)


Everything seems ok but i think there is an error in this exercise.


In the second instruction it says "Set bool_two equal to the result of False and not True or True"
Well if we check it

False and not True or True
False and False or True
False and True
>False

But it says it must return "True". I think its wrong there must be a mistake.
Thank you


#2

You have the precedence right in the first assertion (not is first in the order), so,

False and NOT TRUE or True

becomes,

False and False or True

AND is next in precedence, so

FALSE AND TRUE or True

becomes

False or True

which is True.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.