Weird things in Python
Short Circuit
a and b
evaluates to a if a is falsey, otherwise it evaluates to ba or b
evaluates to a if a is truthy, otherwise it evaluates to b- not a evaluates to True if a is falsey, otherwise it evaluates to False
1 | 0 and 'Hello' 0 |
- True is represented as 1, and False is represented as 0.