Skip to content

Instantly share code, notes, and snippets.

@glassus
Last active September 27, 2020 16:46
Show Gist options
  • Save glassus/6c7c14813fabab8c238c721386147260 to your computer and use it in GitHub Desktop.
Save glassus/6c7c14813fabab8c238c721386147260 to your computer and use it in GitHub Desktop.
fiborec.py
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