What is wrong with this equation?



Double check your value for bool_three!

I've been at it for two days. I thought if the first equation was false it wouldn't matter if the second equation is true.

# Make me false!
bool_three = 13 % 2 == 0 or 12 % 3 == 0


if we evaluate what you have for bool_three:

bool_three = False or True

true or false is true. Seems you got wrong how or works


I still don't understand. Should they both be true? Both false? Is there a book or website that further explains this concept?


This helped explain Boolean logic. Thanks for responding. http://www.i-programmer.info/babbages-bag/235-logic-logic-everything-is-logic.html


bool_three should be false, as explained by this comment:

# Make me false!

i showed you what happens when you evaluate the condition you put in, and that it results in true while it should result in false

understanding booleans helps


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