Fichas
Comparison Operators and Chaining Booleans
Fichas del conjunto (11)
- 1==if the values of two operands are equal, then the condition becomes true.
- 2!=if values of two operands are not equal, then condition becomes true.
- 3<>If values of two operands are not equal, then condition becomes true.
- 4>if the value of left operand is greater than the value of right operand, then condition becomes true.
- 5<if the value of left operand is less than the value of right operand, then condition becomes true.
- 6>=if the value of left operand is greater than or equal to the value of right operand, then condition becomes true.
- 7<=if the value of left operand is less than or equal to the value of right operand, then condition becomes true.
- 81<2 and 2<3True
- 9The 'and' statement is used to ...make sure two checks have to be true in order for the total check to be true
- 101==2 or 2<3True
- 11The 'or' operator only needsat least one statement to be true in order for the whole comparison to be true.
Información
- Descripción
- none (Python Comparison Operators) Python Basics Fichas sobre Comparison Operators and Chaining Booleans, creado por Rebecca Noel el 21/12/2016.
- Creado por
- Rebecca Noel
- Visitas
- 34
- Etiquetas
- Valoración