Python- Operators(Contd)-6(c)
Good Morning Dear students I hope that you got enough time to take a review of the topics covered earlier. Don't forget these are linked topics. By the end of this session you will be able to Understand the working of the various logical operators. Predict the output of expressions involving Logical Operators. Understand the precedence of operators in an expression and predict the output. __________________________________________________________________________________ Python Logical Operators There are following logical operators supported by Python language. Assume variable a holds 10 and variable b holds 20 then Operator Description Example and Logical AND If both the operands are true then condition becomes true. (a and b) is true. or Logical OR If any of the two operands are non-zero then condition becomes true. (a or b) is true. not Logical NOT Used to reverse the logical state of its operand. Not(a and b) is false. Logical operat...