This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aisaac
Recipients aisaac, docs@python
Date 2014-02-03.05:09:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391404187.28.0.545168168954.issue20496@psf.upfronthosting.co.za>
In-reply-to
Content
Section 4.6 of the tutorial introduces function definition:
http://docs.python.org/3/tutorial/controlflow.html#defining-functions

The first example defines a function that *prints* a Fibonacci series.

A basic mistake made by students new to programming is to use a function to print values rather than to return them.  In this sense, the example encourages bad practice and misses an opportunity to instruct.  Since they have already met lists in Section 3, I suggest that returning a list of the values and then printing the list would enhance the tutorial.
History
Date User Action Args
2014-02-03 05:09:47aisaacsetrecipients: + aisaac, docs@python
2014-02-03 05:09:47aisaacsetmessageid: <1391404187.28.0.545168168954.issue20496@psf.upfronthosting.co.za>
2014-02-03 05:09:47aisaaclinkissue20496 messages
2014-02-03 05:09:46aisaaccreate