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))

2nd Jan 2021, 4:32 PM
Emil Lee
Emil Lee - avatar
2 Respuestas
2nd Jan 2021, 4:39 PM
Baspberry
+ 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..
2nd Jan 2021, 4:53 PM
Emil Lee
Emil Lee - avatar