Logical Operators

Python / Basics

T = True
F = False

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

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

# equality
1 == 2                          # False
1 != 2                          # True

'''
Michael Sjoeberg
2018-11-05
https://github.com/michaelsjoeberg/python-playground/blob/master/basic-syntax/logical-operators.py
'''