where the function has problem? n = 900 is OK , but n = 1000 is ERROR
Billy Mays
81282ed9a88799d21e77957df2d84bd6514d9af6 at myhashismyemail.com
Tue Aug 2 14:16:00 CEST 2011
On 08/01/2011 06:06 PM, Steven D'Aprano wrote:
> Does your definition of "fixed" mean "gives wrong results for n>= 4 "?
>
>>>> fibo(4) == 3
> False
>
Well, I don't know if you're trolling or just dumb:
http://en.wikipedia.org/wiki/Fibonacci_number
In [2]: for i in range(10):
...: print fibo(i)
...:
...:
0.0
1.0
1.0
2.0
3.0
5.0
8.0
13.0
21.0
34.0
--
Bill
More information about the Python-list
mailing list