using range with list python code example
Example 1: python create list from range
intList = list(range(r1, r2+1))
Example 2: in range python
for i in range(x) :
#code
intList = list(range(r1, r2+1))
for i in range(x) :
#code