Conditional Statements

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

Comments

Popular posts from this blog

6.00.1x - Week 2

Basic Machine Architecture