Introduction
A ForEach loop helps you repeat a set of actions for each item in a list or collection. It saves time by automating repetitive tasks.
You want to print each name in a list of friends.
You need to check every file in a folder.
You want to send an email to each person in a contact list.
You want to add a prefix to every item in a list.
You want to calculate the total of numbers in a list.