Python Tutorials – Range

range() function is introduced in Python3, in Python2 it is xrange(). Range can be used to generate a sequence of numbers. Range will not return direct sequence. It will return a range object of immutable numbers. Later we need to…