Posts

Showing posts with the label short-circuit evaluation

Conditional Statements

Image
Relational Operators 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