Apparently xrange is faster but I have no idea why it\'s faster (and no proof besides the anecdotal so far that it is faster) or what besides that is different about
range generates the entire list and returns it. xrange does not -- it generates the numbers in the list on demand.