- 1

How to find the fibonacci number using python?

Python

23rd May 2020, 12:38 AM
Mohd Shahnawaz
Mohd Shahnawaz - avatar
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,
23rd May 2020, 1:25 AM
Abhay
Abhay - avatar
23rd May 2020, 1:35 AM
Sandra Meyer
Sandra Meyer - avatar
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)
23rd May 2020, 2:14 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar