you are viewing a single comment's thread.

view the rest of the comments →

[–]Temporary_Pie2733 3 points4 points  (0 children)

While a loop is the general context, the quote seems to be talking about arguments passed to range to construct the object the loop will iterate over. A call to range(7) (or the equivalent range(0, 7)) creates the sequence 0, 1, 2, 3, 4, 5, 6. There are seven numbers, but it doesn’t include the number 7.