+ 1
Was on python 3 learning, project on fibo
How should I do the recursion fibo in python 3 course Given num = int(input()) Def Fibonacci(n) Fibonacci(num) Code I wrote # below function For n in range (num): If n == 0: return 0 else: return Fibonacci(n)+ Fibonacci(n-1) Code appear either no output, output 0, int type not iterable, max recursion depth exceeding. How should I solve this. Thanks
5 Answers
+ 4
Zhi Xian check this code again please..
+ 3
Zhi Xian
Try this đ
https://code.sololearn.com/civQCo6gXHSp/?ref=app
0
but in python 3 lesson required me to print like a list out but not with the list
0
like in put is 5
output should be below
0
1
1
2
3
0
instead of listing like below
[0,1,1,2,3]