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 skyhein
Recipients docs@python, skyhein
Date 2017-10-11.14:40:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
In https://docs.python.org/3/tutorial/controlflow.html#defining-functions both examples produce fibonacci numbers starting with 0. They should start with 1, as in the example in https://docs.python.org/3/tutorial/introduction.html#first-steps-towards-programming

The first example should change the lines
    while a < n:
        print(a, end=' ')
to
    while b < n:
        print(b, end=' ')

and the second example should change the lines
    while a < n:
        result.append(a)    # see below
to
    while b < n:
        result.append(b)    # see below
History
Date User Action Args
2017-10-11 14:40:20skyheinsetrecipients: + skyhein, docs@python
2017-10-11 14:40:19skyheinsetmessageid: <[email protected]>
2017-10-11 14:40:19skyheinlinkissue31757 messages
2017-10-11 14:40:19skyheincreate