Not Knot!

We'll cover the following...

Not True equals False but True does not equal not False. Wait, what? Run the codes below to see for yourself.

Press + to interact
x = True
y = False
print(not x == y)
Press + to interact
x = True
y = False
print(x == not y)

Explanation

  • Operator precedence affects how an expression
...