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
xrange returns an iterator and only keeps one number in memory at a time. range keeps the entire list of numbers in memory.