Python range and xrange
In Python 2.x, the function range(x, y, s) generates a actual list of elements from x to y – 1 step s. The other syntax is range(a) and range(a, b) which is the same as range(0, a, 1) and range(a, b, 1) respectively. For example, …