[docs] Error on: 3. An Informal Introduction to Python

Lincoln Kilby lincolnkilby at gmail.com
Mon Apr 16 22:52:25 EDT 2018


To whom it may concern,

In the last example on the page:

https://docs.python.org/3/tutorial/introduction.html

The last line of output should have “>>>” (in dark red) appended to it, as the print() function has had the newline overridden with the end keyboard, and should appear like so:

>>> a, b = 0, 1
>>> while b < 1000:
...     print(b, end=',')
...     a, b = b, a+b
...
1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,>>>

A brief note explaining why this happens would be instructional, as well.

Thank you,

Lincoln
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20180416/21d2077f/attachment.html>


More information about the docs mailing list