Billy Mays wrote: > I have fixed the problem for you: > > > def fibo(n): > phi = (1+5**.5)/2; iphi = 1-phi; > return (phi**n - iphi**n) / (5**.5)
Does your definition of "fixed" mean "gives wrong results for n >= 4 "? >>> fibo(4) == 3 False -- Steven -- http://mail.python.org/mailman/listinfo/python-list