Hello, very recently we started with recursion and I do not understand it very much, they ask to create a program that makes the fibonacci succession but in several cases it gives me another value
#Fibonacci
def fibonacci(n):
if n==1 or n ==0:
return n
else:
return fibonacci(n-2)+ fibonacci(n-1)
numero =int (raw_input("Ingrese un numero entero positivo: "))
if numero < 0:
print("Le dije que era un numero ENTERO POSITIVO")
i = 0
print("La sucesion Fibonacci es: ")
for i in range (0,numero):
print(fibonacci(i))
That is my code, if you could tell me what I am failing I would thank you very much