logical-operators.py

T = True
F = False

# and, or
print(T or F)                   # True
print(T and (T and F))          # False

# not
print(not T)                    # False
print(not (not T))              # True

# equality
print(1 == 2)                   # False
print(1 != 2)                   # True