3 Réponses
0
Fibonacci numbers is simply adding of previous number into current one ,0+1=1,1+1=2,1+2=3,3+2=5,
0
If you need the golden ratio, the number representing the limes of the Fibonacci sequence, it is of course (√5 + 1) / 2
So:
print((5**0.5 + 1) / 2)