Comparison Operators and Chaining Booleans

Descripción

none (Python Comparison Operators) Python Basics Fichas sobre Comparison Operators and Chaining Booleans, creado por Rebecca Noel el 21/12/2016.
Rebecca Noel
Fichas por Rebecca Noel, actualizado hace más de 1 año
Rebecca Noel
Creado por Rebecca Noel hace más de 7 años
3
0

Resumen del Recurso

Pregunta Respuesta
== if the values of two operands are equal, then the condition becomes true.
!= if values of two operands are not equal, then condition becomes true.
<> If values of two operands are not equal, then condition becomes true.
> if the value of left operand is greater than the value of right operand, then condition becomes true.
< if the value of left operand is less than the value of right operand, then condition becomes true.
>= if the value of left operand is greater than or equal to the value of right operand, then condition becomes true.
<= if the value of left operand is less than or equal to the value of right operand, then condition becomes true.
1<2 and 2<3 True
The 'and' statement is used to ... make sure two checks have to be true in order for the total check to be true
1==2 or 2<3 True
The 'or' operator only needs at least one statement to be true in order for the whole comparison to be true.
Mostrar resumen completo Ocultar resumen completo

Similar

Computing - Chapter one summary -
Beenish Shabir
gates
Euan Bull
Ch. 14 English Test
Teacher Scott
RE Keywords - Paper 1 - Religion and life
Kerris Linney
STEM AND LEAF DIAGRAMS
Elliot O'Leary
Forces and their effects
kate.siena
Matters of Life and Death GCSE
kate.siena
Python Quiz
karljmurphy
Think Python
tsilvo2001
Boolean
inga pinga
Basic Python - Print Formatting
Rebecca Noel