A range is an interval of values. A simple example of range is 0,1,2,3,4,5,6,7,8,9 because the numbers are sequential from 0 to 9.
We can create range in swift using two range operators described below:
1. Closed Range Operator (lowerBound...upperBound)
It includes all the values in the interval(lowerbound to upperBound). It is declared using
… (3 dots)operator.
1...3 Defines range containing values 1,2,3