Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ recur_fibo
Function
recur_fibo
maths/fibonacci_sequence_recursion.py:3–7 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
1
# Fibonacci Sequence Using Recursion
2
3
def
recur_fibo(n):
4
if
n <= 1:
5
return
n
6
else
:
7
(recur_fibo(n-1) + recur_fibo(n-2))
8
9
def
isPositiveInteger(limit):
10
return
limit >= 0
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected