[Tutor] Displaying range in 3.0.1
wesley chun
wescpy at gmail.com
Thu May 28 20:24:53 CEST 2009
On Thu, May 28, 2009 at 10:22 AM, Gregory Morton <tyetheczar at hotmail.com> wrote:
> I've been reading this Python 3.0.1 tutorial(http://docs.python.org/3.0/tutorial/controlflow.html), and now I'm
> stuck at the second example in 4.3. This is what the example says the output should look like:
>
> range(5, 10)
> 5 through 9
> :
> But what I receive instead is the same as what I input (i.e. range(5,
> 10) just returns range(5, 10)).
hi, and welcome to Python!
with regards to your inquiry, you stopped reading too early. keep on
going down that page. your question is answered starting with the
paragraph that begins with, "A strange thing...."
hope this helps!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
http://corepython.com
wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
More information about the Tutor
mailing list