Loops
Make the most repetitive tasks easier by learning Swift loops!
StartKey Concepts
Review core concepts you need to learn to master this subject
Ranges
Ranges
let zeroToThree = 0...3
// zeroToThree: 0, 1, 2, 3
Ranges created by the ...
operator will include the numbers from the lower bound to (and includes) the upper bound.
What you'll create
Portfolio projects that showcase your new skills
Whale Talk
It's time to loop back to the fundamentals. Iterate through the characters of a string and use the vowels to construct your own "human speak to whale talk" translator.
99 Bottles of Milk
Write a Swift program that uses loops to print the lyrics of a very repetitive song!
Fizz Buzz
Write a program that prints the numbers from 1 to 100. But for multiples of 3 print "Fizz" instead of the number and for the multiples of 5 print "Buzz". For numbers which are multiples of both 3 and 5 print "FizzBuzz".
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory