Python Boolean Operators
00:00 Now let’s take a look at how Python implements the Boolean operators.
&&) for AND, the two vertical bars (
||) for OR, and the exclamation point (
!) for NOT.
Python actually uses the keywords written in English:
not. You would simply use those to separate your two expressions for
or, or put
not in front of another expression to do its negation.
In the next set of lessons, we’ll take a look at some examples on how you would write expressions using the operator
Become a Member to join the conversation.