Introduction
A for loop with a range lets you repeat commands a set number of times easily.
When you want to run a task 10 times in a row.
When you need to process files numbered from 1 to 10.
When you want to print numbers from 1 to 10.
When automating repetitive steps in a script.
When counting or iterating over a fixed sequence of numbers.