Define Boolean.
Use Booleans in Python for standard and logical arithmetic.
State the three basic logical operators in Python and relate them to logical operations in classical logic.
Construct truth tables from complex logical expressions.
Relate logical operations to set operations, and use logical operations to verify set-theoretic results.
State the five basic comparison operators in Python.
Use comparison and logical operators to construct conditional statements.
Explain why checking for equality with floating point numbers can be problematic, and state an alternative design principle.
if
and if-else
StatementsState the syntax for an if-else
statement in Python.
Convert from an if-else
statement to a flowchart element and vice versa.
Explain what the %
operator does when acting on two integers.
Use if
and if-else
statements to write a program with one or more conditional elements.
State the syntax for an if-elif-else
statement in Python.
Convert from an if-elif-else
statement to flowchart elements and vice versa.
Use if-elif-else
statements to write a program with one or more conditional elements.
Use nested conditional statements to write a program with one or more conditional elements.