Introduction
Creating a Range Using to
Specifying an Interval Using by
Creating a Range Using until
Introduction
In the previous lessons, we used the range method to populate a collection. A Range is also a collection in itself. It is an ordered sequence of integers with the integers being equally spread apart from one another by an equal interval.
Creating a Range Using to
We can create a Range by fixing to between the lower limit and upper limit of a Range.