Python - NOT Operator
📖 Read the lesson
Code Life
By Pierre Marsaa
NOT Operator
The
not
operator is a logical operator that negates the value of a boolean. It returns
True
if the value is
False
, and
False
if the value is
True
.
Let's display the truth table with code !
↗️
Loading editor...
↶
▶️ Run
↷
Verify