In Python 3, they removed the original range()function and renamed xrange of python 2.x to range in python 3.x
basic functionality is the same between xrange and range.
Differences:
Two xrange objects will not be seen as equal unless they are actually the same exact object
Whereas a comparison between two range objects in Python 3 actually checks whether the start, stop, and step of each object is equal.
basic functionality is the same between xrange and range.
Differences:
Two xrange objects will not be seen as equal unless they are actually the same exact object
Whereas a comparison between two range objects in Python 3 actually checks whether the start, stop, and step of each object is equal.