Technical requirements
The Xcode playground for this chapter can be found in the Chapter04 folder of the code bundle for this book, which can be downloaded from here:
https://github.com/PacktPublishing/iOS-26-Programming-for-Beginners-10E
Check out the following video to see the code in action:
If you wish to start from scratch, create a new playground and name it RangeOperatorsAndLoops.
You can type in and run all the code in this chapter as you go along.
Let’s start by specifying a range of numbers using range operators.