+ 5
1
What could be wrong with my Fibonacci series code, coz still it's not accepted as the right code. def printFibonacciNumbers(n): f1 = 0 f2 = 1 if (n < 1): return 0 print(f1) for x in range(1, n): print(f2) next = f1 + f2 f1 = f2 f2 = next # Driven code printFibonacciNumbers(5)
3 Antworten
+ 5
Thank you all for the assistance,
+ 3
This will help you:
https://code.sololearn.com/cv9BZ6u919Uk/?ref=app
+ 2
It's working correctly, what problem are you facing?