Introduction
A for loop helps you repeat a task many times without writing the same code again and again.
When you want to count from 1 to 10 and do something each time.
When you have a list of names and want to greet each person.
When you want to add up numbers in a list.
When you want to repeat an action a fixed number of times.
When you want to process items in an array one by one.