Python range()
Python range type represents an immutable sequence of numbers. The most common use of a range is to use it for iterating over a series of items (list, set, tuple, dictionary or string). The range object is more memory efficient than list or tuple. A range stores only the start, stop and step values in …