range creates a list of values range(from, to, step)

examples/lists/range.py
from __future__ import print_function

print(range(1, 3))    # [1, 2]

print(range(3))       # [0, 1, 2]
print(range(1, 9, 2)) # [1, 3, 5, 7]

for i in range(2, 6):
    print(i)

# 2
# 3
# 4
# 5