Chapter 5 Flashcards
(11 cards)
An expression whose value is either True
or False
Boolean expression
One of the operators that combines boolean expressions, including and
, or
, and not
logical operator
One of the alternative sequences of statements in a conditional statement
branch
One of the operators that compares its operands: ==
, !=
, >
, <
, >=
, and <=
relational operator
One or more statements indented to indicate they are part of another statement
block
A statement that controls the flow of execution depending on some condition
conditional statement
A character that creates a line break between two parts of a string
newline
A conditional statement with a series of alternative branches
chained conditional
The boolean expression in a conditional statement that determines which branch runs
condition
A conditional statement that appears in one of the branches of another conditional statement
nested conditional
An operator, %
, that works on integers and returns the remainder when one number is divided by another
modulus operator