ExampleGet your own Python Server Using the range() function: for x in range(6): print(x) Try it Yourself » Note that range(6) is not the values of 0 to 6, but the values 0 to 5.The range() function defaults to 0 as a starting value, however it is possible to specify ...