Why is there no xrange function in Python3?
Why is there no xrange function in Python3? Question: Recently I started using Python3 and it’s lack of xrange hurts. Simple example: Python2: from time import time as t def count(): st = t() [x for x in xrange(10000000) if x%4 == 0] et = t() print et-st count() Python3: from time import time as …