Swift For Loop.
In Swift, the for-in loop is used to run a block of code for a certain number of times. It is used to iterate over any sequences such as an array, range, string, etc.
The syntax of the for-in loop is:
for val in sequence{
// statements
}