Flashcards
Comparison Operators and Chaining Booleans
Cards in this deck (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.
Information
- Description
- none Python Basics (Python Comparison Operators) Flashcards on Comparison Operators and Chaining Booleans, created by Rebecca Noel on 21/12/2016.
- Created by
- Rebecca Noel
- Views
- 34
- Tags
- Rating