Skip to content

Lab 06: For Loops

Goal

Use a counted loop for a known amount of repetition.

Practice Tasks

  • Print a simple numbered sequence.
  • Compute a sum over a range.
  • Compare the behavior of range(5) and range(1, 6).

Check Yourself

Predict the number of loop iterations before running the program.