from Guido's tutorial:<br><br><span style="font-style: italic;">
The given end point is never part of the generated list;
</span><code style="font-style: italic;">range(10)</code><span style="font-style: italic;"> generates a list of 10 values, the legal
indices for items of a sequence of length 10. It is possible to let
the range start at another number, or to specify a different increment
(even negative; sometimes this is called the `step')</span><br><br><div><span class="gmail_quote">On 7/19/07, <b class="gmail_sendername">elis aeris</b> <<a href="mailto:hunter92383@gmail.com">hunter92383@gmail.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I ran this<br><br><br>for x in range(5,10):<br> print x<br><br><br>
<br><br>and OP was <br><br>5<br>6<br>7<br>8<br>9<br><br><br><br>why is that? shouldn't it print <br><br><br>t<br>6<br>7<br>8<br>9<br>10?<br>
<br>_______________________________________________<br>Tutor maillist - <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Tutor@python.org">Tutor@python.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">
http://mail.python.org/mailman/listinfo/tutor</a><br><br></blockquote></div><br>