In [1]:
for i in range(3):
print(i)
In [2]:
print(range(3))
print(type(range(3)))
In [3]:
print(list(range(3)))
In [4]:
print(list(range(6)))
In [5]:
print(list(range(10, 13)))
In [6]:
print(list(range(0, 10, 3)))
In [7]:
print(list(range(10, 0, -3)))
In [8]:
for i in range(10, 0, -3):
print(i)