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.

classification
Title: Minor error in section 3.2
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: isandler, jyby
Priority: low Keywords:

Created on 2005-03-11 19:29 by jyby, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg24563 - (view) Author: Jeremy Barbay (jyby) Date: 2005-03-11 19:29
In the section "3.2 First Steps Towards Programming " of 
the Python tutorial (http://docs.python.org/tut/node5.html), 
the output of both implementations of the Fibonacci 
sequence computation is incorrect. 
 
As written, only one 1 should be output.  
You should either remove one 1 from the input,  
or replace the lines "print b" and "print b,"  
by "print a" and "print a,". 
 
This is minor but might confuse unnecessarily  beginners. 
msg24564 - (view) Author: Jeremy Barbay (jyby) Date: 2005-03-11 19:40
Logged In: YES 
user_id=149696

All my apologies: I didn't check my code correctly: 
as the algorithm is initializing a with  0  instead of 1, the output is 
correct. 
msg24565 - (view) Author: Ilya Sandler (isandler) Date: 2005-04-06 02:52
Logged In: YES 
user_id=971153

It indeed seems that the output in tutorial is correct

could you close or delete the bug then?

Thanks
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41683
2005-03-11 19:29:28jybycreate