Python - OR Operator
📖 Read the lesson
Code Life
By Pierre Marsaa
OR Operator
The
or
operator is a logical operator that returns
True
if at least one side is
True
. Otherwise, it returns
False
.
Here is a truth table for the
or
operator with 2 variables (
A
or
B = ?
). It shows all possible combinations of
True
and
False
.
Truth table : OR
Verify