Thursday, January 18, 2018

Logical operators in Python

There are following logical operators supported by Python language
and Logical ANDIf both the operands are true then condition becomes true.(a and b) is true.
or Logical ORIf any of the two operands are non-zero then condition becomes true.(a or b) is true.
not Logical NOTUsed to reverse the logical state of its operand.Not(a and b) is false.


No comments:

Post a Comment