# Posts tagged boolean logic

## The NAND, NOR, and XOR operators in Python

- 07 April 2022

The NAND, NOR, and XOR operators are logical operators that are not built into Python, but can be implemented using the built-in not, and, and or operators. The NAND operator returns True if and only if both of its operands are False, and the NOR operator returns True if and only if both of its operands are False. The XOR operator returns True if and only if exactly one of its operands is True.