Introduction
Loops help us repeat actions easily without writing the same code again and again.
When you want to print numbers from 1 to 10.
When you need to process each item in a list or array.
When you want to keep asking a user for input until they give a valid answer.
When you want to repeat a task multiple times, like retrying a connection.
When you want to sum all values in a collection.