5.1. For loops
let range = 1...10
for number in range{
print(number)
}var carMakesSecond = ["Toyota", "Honda", "Mazda", "Chevy"]
for item in carMakesSecond{
print(item)
}for _ in 1...10{
print("Doing the task!")
}5.1.2. Looping through other Collections (Dictionaries, Arrays of Struct Objects, etc.)
Last updated