range with function python code example Example: range py range(start, stop, step) x = range(0,6) for n in x: print(n) >0 >1 >2 >3 >4 >5