0
Wher i goes wrong??
num = int(input("Enter the number: ")) def f_series(n): if n == 0:return 0 elif n == 1 or n == 2: return 1 else: return f_series(n - 1) + f_series(n - 2) for value in range(num): print(f_series(value))
4 Réponses
+ 3
Maharsh Patel
Because you should not print anything else except output.
Here Enter the number is also printing so remove this line and just write
num = int(input())
+ 1
Maharsh Patel
Nothing Wrong working fine.
https://code.sololearn.com/cJAWM7wQ3p75/?ref=app
+ 1
Thank you...
0
Because solo learn compiler shows wrong output, because i have to print Fibonacci series..