Why is this True?


#1

How is this equal to True: False and not True or True

Not true or true = False or False, which = false
Therefore, False and False = False

What am I missing?


#2

Hi @mattstermh,

See this Python Operator precedence table. Operations are performed in order, starting from the bottom of the table, and going up toward the top. Accordingly, not is performed before and, which is performed before or.

  • False and not True or True
  • False and False or True
  • False or True
  • True

#3

Got it, makes sense now. Thanks!


#4