0
Pls help me to solve fibonacci in python. I tried but didn't succeeded. This is really tough. Python is becoming interesting.
num = int(input()) from itertools import count for n in count(0) : if count(n) == num : break def fibonacci(n): if n <= 1 : return 1 else : return n + fibonacci(n) print (fibonacci(num))
2 Respuestas
+ 2
Bro see this code 👇 👇
https://code.sololearn.com/cNg7O125kp3D/?ref=app
0
return fibonacci(n-1) + fibonacci(n-2)