Test Your Knowledge: Quiz

 

 
  1. What are the main functional differences between a while and a for?
  2. What’s the difference between break and continue?
  3. When is a loop’s else clause executed?
  4. How can you code a counter-based loop in Python?
  5. What can a range be used for in a for loop?