[Chicago] Python Tutorial 4.6 function fib()
sheila miguez
shekay at pobox.com
Sun Jan 6 17:26:26 CET 2008
On Jan 5, 2008 10:47 PM, Patrick O'Hara <pohara at virtualmotors.com> wrote:
> uh you did not answer the question
> why did the def fib(n):
> fail to work
> on python
> or my MacBookPro w/ Leopard
Ted answered your question.
what you typed here is wrong
> > a,b = b, a*b
Ted corrected it
> a,b = b, a+b
So, the reason the function you typed from the tutorial didn't work is
that you didn't type it correctly.
reread
http://docs.python.org/tut/node6.html#SECTION006600000000000000000
--
sheila
More information about the Chicago
mailing list