Name: Anonymous 2017-07-29 17:56
https://pastebin.com/qprgVAmc
(couldn't post it here)
(couldn't post it here)
range
in py3 is the same as xrange
in py2. py3 removed the eager version and removed the lazy one:
In [1]: r = range(0,10)
In [2]: r
Out[2]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
In [3]: x = xrange(0,10)
In [4]: x
Out[4]: xrange(10)
In [5]: list(x)
Out[5]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[1]: r = range(10)
In [2]: r
Out[2]: range(0, 10)
In [3]: list(r)
Out[3]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]