Last active
September 27, 2020 16:46
-
-
Save glassus/6c7c14813fabab8c238c721386147260 to your computer and use it in GitHub Desktop.
fiborec.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fibo(n): | |
if n == 0 : | |
return 0 | |
elif n == 1 : | |
return 1 | |
else : | |
return fibo(n-1) + fibo(n-2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment