python populate a number in a list code example
Example 1: python create list from range
intList = list(range(r1, r2+1))
Example 2: python program to get equally distributed number from given range
def steps(start,end,n):
if n<2:
raise Exception("behaviour not defined for n<2")
step = (end-start)/float(n-1)
return [int(round(start+x*step)) for x in range(n)]