| ★ wanayoo — archive 1999 http://www.python.org/doc/current/lib/boolean.html | Nouvelle recherche | Portail wanayoo |
These are the Boolean operations, ordered by ascending priority:
| Operation | Result | Notes |
|---|---|---|
x or y |
if x is false, then y, else x | (1) |
x and y |
if x is false, then x, else y | (1) |
not x |
if x is false, then 1, else 0 | (2) |
Notes: