Gregory M. Kapfhammer

Triangles 1 flickr photo by vincentag shared under a Creative Commons (BY-NC-ND) license

**Key Concept**

**Corresponding Diagram**

**In-Class Discussion**

**In-Class Activity**

**Details in the Textbook**

Chapters 5 through 8

Mathematical expressions

Boolean expressions

Logical operations

Conditional execution

Precondition violated: arguments are incorrect

Postcondition violated: function is incorrect

Return value misused: calling function is incorrect

`while`

loops`for`

loops`for each`

loops`while`

loops`for each`

loops`in`

operators = "Monty Python"

s[0:5] is "Monty"

s[6:12] is "Python"