Not Knot!
Explore how Python evaluates expressions involving the not and == operators, understand operator precedence rules, and recognize why some expressions cause syntax errors.
We'll cover the following...
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.
Explanation
- Operator precedence affects how an expression is evaluated, and the
==operator