range() vs xrange() in Python
These are two functions used to iterate a certain number of items in for loops. In python2 we use xrange() function and in python3 we use the range(). But if you want to write a code that will run on both python2 and python3, you should use range(). In other ways, they are different in […]
range() vs xrange() in Python Read More »