def fibonacci(n):
if n==0:
return 0
if n==1 | n==2:
return 1
f = (fibonacci(n-1) + fibonacci(n-2))
return f
Hi, I'm a python newbie and I want to implement a recursive fibonacci function, but my code (above) does not work. When I call this function the terminal prints the 6th line until the recursion depth limit is reached. What's the correct syntax to use here?