Module 2: Making Decisions Flashcards
True and False belong to type _____.
bool
x is not equal to y given by _____
!=
x is equal to y given by _____
==
x is greater than or equal to y given by ______
> =
x is less than or equal to y given by ____
<=
and, or and not are _______.
logical operators.
_______ are a header followed by an indented body.
compound statements
_____ limit on number of statements that can appear in the body but must have _____.
no, 1
to have a body with no statements use the ______ statement.
pass
___________ is a second form of if statement when there are two possibilities and the condition determines which one runs.
alternative execution
________ is when there are more than two possibilities and we need more than two branches.
chained conditionals
chained conditionals use: ________
if, elif, else or if, elif, elif
alternative execution uses ________.
if, else
alternatives are also called ________
branches
_______ is when an outer conditional has inner conditionals
nested conditional