for i in range(1,10): print(i) code example Example: range in python for i in range (start, step, stop): dosomething()