You are on page 1of 6

PYTHON PRACTICAL

NOTES PART 6 (BASICS


QUESTIONS )
Understand the following codes
== is for equal to
!= is for unequal to
 True and False are the BOOLEAN
VALUES
 It has been used for logical
evaluation as we saw in the
question
 Logical Operators are and, or
 They are used to combine one or
more conditional statements.
 and will return to be true if both the
conditional statements are correct
 or will return to be true even if one
of the conditional statements are
correct
 not reverses the result, it will be
true if the operands are false

LETS SEE THE USE OF EACH ONE


Not can be used with and in the same
way
The results will obviously differ because
or and and have different rules of true
and false.
Overall, not will just reverse the
Boolean value of or and and.

You might also like