+ 2

Describe fibonacci!!

Please explain me - def fibonacci(num): fibo = [0,1] i = 2 while i<= num: next_fibo = fibo[i-1] + fibo[i-2] fibo.append(next_fibo) i += 1 return fibo print(fibonacci(9))

19th Apr 2020, 10:49 AM
Sukanya Mukherjee
Sukanya Mukherjee - avatar
3 Answers
+ 1
I know the function,also know the fibonacci. But I'm not getting the explnation of the code.
19th Apr 2020, 1:38 PM
Sukanya Mukherjee
Sukanya Mukherjee - avatar