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 rajesh.menon
Recipients georg.brandl, rajesh.menon
Date 2009-11-20.13:50:29
SpamBayes Score 0.11167537
Marked as misclassified No
Message-id <1258725032.09.0.34838264618.issue7369@psf.upfronthosting.co.za>
In-reply-to
Content
The example starts off with 1 being printed, while the series is 
expected to begin with 0 and 1.
The example in 4.6 (defining functions) should have been:

def fib(n):
  a, b = 0, 1
  while a < n:
    print a,
    a, b = b, a+b
fib(2000)

0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597
History
Date User Action Args
2009-11-20 13:50:32rajesh.menonsetrecipients: + rajesh.menon, georg.brandl
2009-11-20 13:50:32rajesh.menonsetmessageid: <1258725032.09.0.34838264618.issue7369@psf.upfronthosting.co.za>
2009-11-20 13:50:30rajesh.menonlinkissue7369 messages
2009-11-20 13:50:29rajesh.menoncreate