Chapter 12: Comprehension Questions

  1. What’s the difference between a for-loop and a while-loop?
  2. What type of conditional statement works like a while-loop and has similar syntax? How is a while statement different?
  3. Explain when to use a counting loop.
  4. Think of a real-life example of a counting loop.
  5. Explain when you use range for a loop.
  6. What is an infinite loop?