Conditional Statements
Relational Operators
Boolean Operators: and, or, and not
Rule of precedence:
Boolean expression involving 'and', if first operand evaluates to False, Python stops evaluation even if some operands have not been evaluated yet and the entire expression is considered to be False. Similarly for Boolean expression involving 'or' and one of the operands is True
Boolean Operators: and, or, and not
Rule of precedence:
Arithmetic > Relational > Boolean
Short-circuit evaluation:Boolean expression involving 'and', if first operand evaluates to False, Python stops evaluation even if some operands have not been evaluated yet and the entire expression is considered to be False. Similarly for Boolean expression involving 'or' and one of the operands is True
Comments
Post a Comment