Page 128 - Plus V4 with Adobe class 6
P. 128
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 true. (x < 5) and (x < 10) TRUE
or OR It returns true, if one of the operands is (x < 5) or (x < 2) TRUE
true.
not NOT It reverses the result, returns false, if the not [(x < 5) and (x < 10)] FALSE
result is true or vice versa.
Program 3: To perform all the logical operators
126 Plus (Ver. 4.0)-VI

