For Loops in Programming

► Overview

For loops allow you to repeat code a specific number of times or iterate through items in a collection. They are essential for automating repetitive tasks.

► Real-World Analogy

Think of a for loop like reading a book:
» For each page in the book
» Read the page
» Turn to next page
» Repeat until book is finished

► Key Concepts

✓ Iteration: Repeating a process multiple times
✓ range(): Generates sequence of numbers
✓ Loop Variable: Tracks current iteration
✓ Iterable: Object you can loop through (list, string, etc.)

■ For Loop Examples