Lab 5: for Loops: Early Return, Early Loop Exit, Tracking Variables, and Index Loops
Goals
- Learn about early return from loops in a function
- Learn about early exits from loops:
break,for/elseloops, andcontinue - Learn how to use tracking variables in a loop
- Learn how to write index loops and what their compelling use cases are
- Practice dbugging techniques for loops
Partners
Here are today's assigned partners:
- Gianna, Dani
- Keily, Allie,
- Grace, Fiona
- Sophia, Julia
- Seona, Penelope
Table of Contents
- Lab 5 Home
- Part 1: General Important Style Guidelines
- Part 1: Early Returns from Loops in a Function
- Part 2: Other Early Exits from Loops
- Part 3: Tracking Variables
- Part 4: for-based Index Loops
- Part 5: Advanced
forLoop Exercises - Part 6: Debugging Loops
- Part 7: Loops and Graphics(optional)