0
What is wrong with this code which I am trying to solve the end of module task in python?
num = int(input()) def fibonacci(n): #complete the recursive function if n <= 1: return 1 else: return fibonacci(n-1) + fibonacci(n-2) for i in range(num): print(fibonacci(num))
2 Antworten
+ 3
This should work:
https://code.sololearn.com/cUxbFU5sNYW0/?ref=app
+ 1
FunOfCoding thanx a lot!🙏 An overlook on my part😅 I should have been more careful. But I think my mistake could be a lesson for everyone to learn..