Python xrange – difference between range and xrange

The Python xrange

The xrange() is removed from version 3.x. Alternatively python xrange() is renamed to the range() function.

The range function is generally used in for loops to create a list of integers.

Go to the range() chapter for full details.

Was this article helpful?

Related Articles

Leave A Comment?