Boolean logic


Why is the boolean two equals to True?


Why wouldn’t it be? Please explain your logic so we can see where you wrong


order of operations (not keyword) is resolved first, followed by and and finally or)


False and not True or True
not gets evaluated first

False and False or True
and gets evaluated before or

False and False evaluates to False

False or True
evaluates to True


Thanks !! I understood now :grinning:


I was just doing it in a wrong way
Thanks for explaining :sweat_smile: