O'Reilly logo
  • Sri Harsha V thinks this is interesting:

Note that for loops force results from range automatically in 3.X, so we don’t need to use a list wrapper here in 3.X (in 2.X we get a temporary list unless we call xrange instead).


Cover of Learning Python, 5th Edition


This is the only place where we don't need to use list(range(x,y,z)) even in python 3.x