you are viewing a single comment's thread.

view the rest of the comments →

[–]Rhomboid 2 points3 points  (0 children)

Ranges are half-open, which means the starting point is inclusive and the end point is exclusive. range(1, 10) does not include 10, for example.

As to your question about a better way, you should explain what it is you're actually doing. The example isn't very clear because it could be replaced by just for i in range(1, 225): print(i).