>>> range(0, 10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> range(0, 10, 2) [0, 2, 4, 6, 8]
>>> i = 0 >>> for j in range(0, 10): ... i = i + j ... >>> print i 45