esson 2 ❮ Lesson List ❮ Top Page
❯ 2.3 Boolean Operators
⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺
EXPECTED COMPLETION TIME
❲▹❳ Video 5m 39s
☷ Interactive readings 5m
A Boolean value of True or False is essential for making a conditional statement. Operators such as ==, !=, <, >, <=, and >= can be used for logic operations and will result in a Boolean value.
Boolean operators such as and, or, and not, can be useful to compare different boolean conditions.
Some bitwise operators can be used too as the shorter version of boolean operator.
Checking whether a value appear or not in a list can be important. Using in operator, we can check whether an item is in a list.
We can also use not if we want to check if the item is not in a list.