Not Knot!
Not True equals False but True does not equal not False. Wait, what? Run the codes below to see for yourself.
Python 3.5
x = Truey = Falseprint(not x == y)
Python 3.5
x = Truey = Falseprint(x == not y)
Explanation
- Operator precedence affects how an expression is evaluated, and the
==
operator