- 1

num = int(input()) def Fib(n): return n if (n<2) else Fib(n-2) + Fib(n-1) for i in range(6): print(Fib(i)) #compl

Where am i wrong

23rd Nov 2020, 9:38 AM
Thakkar Heer
Thakkar Heer - avatar
2 Answers
+ 1
You are not using num. Your function is ok
23rd Nov 2020, 10:26 AM
Benjamin JĂŒrgens
Benjamin JĂŒrgens - avatar
0
Please tell
23rd Nov 2020, 9:38 AM
Thakkar Heer
Thakkar Heer - avatar