logical python operators code example Example: not in python # False print(not(1 == 1)) # True print(not(1 == 2))