Chapter 12: Comprehension Questions
- What’s the difference between a for-loop and a while-loop?
- What type of conditional statement works like a while-loop and has similar syntax? How is a while statement different?
- Explain when to use a counting loop.
- Think of a real-life example of a counting loop.
- Explain when you use range for a loop.
- What is an infinite loop?