Creating a Range of Numbers

In this lesson, you will learn how to create a range of numbers using `Range`.


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.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy