swift foreach step 2 code example Example: foreach swift let numbers = [1, 2, 3, 4, 5] for number in numbers { print(number) }