Comparison Operators and Chaining Booleans

Descrição

none Python Basics (Python Comparison Operators) FlashCards sobre Comparison Operators and Chaining Booleans, criado por Rebecca Noel em 21-12-2016.
Rebecca Noel
FlashCards por Rebecca Noel, atualizado more than 1 year ago
Rebecca Noel
Criado por Rebecca Noel mais de 7 anos atrás
2
0

Resumo de Recurso

Questão Responda
== 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.

Semelhante

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