Page 92 - TP-Play_V-2.0_Book-6
P. 92
Program 2: To perform all the assignment operators
The output of the above program is:
Logical Operators
Logical operators are used to evaluate and decide. Python supports the following logical
operators:
Operator Name Description Example (x=2) Output
and AND It returns true, if both operands are (x < 5) and (x < 10) TRUE
true.
or OR It returns true, if one of the operands (x < 5) or (x < 2) TRUE
is true.
not NOT It reverses the result, returns false, if not [(x < 5) and (x < FALSE
the result is true or vice versa. 10)]
92 Play (Ver. 2.0)-VI

