Comparison Operators and Chaining Booleans

Beschreibung

none Python Basics (Python Comparison Operators) Karteikarten am Comparison Operators and Chaining Booleans, erstellt von Rebecca Noel am 21/12/2016.
Rebecca Noel
Karteikarten von Rebecca Noel, aktualisiert more than 1 year ago
Rebecca Noel
Erstellt von Rebecca Noel vor mehr als 7 Jahre
2
0

Zusammenfassung der Ressource

Frage Antworten
== 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.
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

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