What is wrong with this equation?


#1


https://www.codecademy.com/courses/python-beginner-BxUFN/2/6?curriculum_id=4f89dab3d788890003000096#

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


#2

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


#3

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


#4

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


#5

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


#6

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