Harold Nelson
9/10/2019
This operator can be used in several different contexts in python. The examples here involve strings.
string1 in string2 is true if string1 is a substring of string2.
Here are some examples
## True
## False
## True
## False
The english word “and” is a binary operator used between two logical expressions. The resulting logical value is True if both the left and right operands are True, and False otherwise.
Examples:
## True
## False
The english word “or” is a binary operator used between two logical expressions. The resulting logical value is True if either the left, or right, or both operand(s) is(are) True. It is False otherwise.
Examples:
## True
## True
## False
The english word not is a unary operator placed in front of a logical expression. The resulting logical value is True if the original logical value is False. If the original logical value is True, the resulting logical value is False. The not operator reverses the original logical value.
Examples:
## True
## False