Comparison Operators and Chaining Booleans

Description

none Python Basics (Python Comparison Operators) Flashcards on Comparison Operators and Chaining Booleans, created by Rebecca Noel on 21/12/2016.
Rebecca Noel
Flashcards by Rebecca Noel, updated more than 1 year ago
Rebecca Noel
Created by Rebecca Noel over 7 years ago
2
0

Resource summary

Question Answer
== 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.
Show full summary Hide full summary

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
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