Iteration and while Loops

while Loops

  1. State the syntax for while loops in Python.

  2. Explain and identify the structure of a while loop in the flowchart representation of an algorithm.

  3. Relate the concept of mise en place from cooking to loops.

  4. Define accumulator variable.

  5. Identify the two main tasks that must be performed before entering a while loop.

  6. Identify and use (where appropriate) augmented assignment operators.

  7. Use while loops to perform iterative calculations.

Being the Computer

  1. Explain what Dr. Darmon means by “being the computer.”

  2. Identify the steps involved in “being the computer.”

  3. Use the “being the computer” process while reading and writing code.

Tracking Progress in Loops

  1. Write print() statements with formatted strings to track the progress of a program inside of a loop.

Primality Testing

  1. Define prime and composite integers.

  2. State a simple primality test for integers.

Flow Control in Loops

  1. Explain how to use a break statement to break out of a loop.