[Chicago] Python Tutorial 4.6 function fib()
Patrick O'Hara
pohara at virtualmotors.com
Sun Jan 6 03:25:28 CET 2008
fib(n): # Fibonacci a,b=0,1 while b < n: print b, a,b = b, a*b
it doesn't workit prints 0 0 00 0 00 00 000000
0 0 00 0 00 00 000000
0 0 00 0 00 00 000000
0 0 00 0 00 00 000000
0 0 00 0 00 00 000000
0 0 00 0 00 00 000000
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/chicago/attachments/20080105/8c29349a/attachment.htm
More information about the Chicago
mailing list