Skip to content

Instantly share code, notes, and snippets.

@cemdrk
Created December 22, 2018 17:36
Show Gist options
  • Save cemdrk/09f8e094572d12968c399aa43a0bc3ac to your computer and use it in GitHub Desktop.
Save cemdrk/09f8e094572d12968c399aa43a0bc3ac to your computer and use it in GitHub Desktop.
Get n th fibonacci number
def fibo(n):
if n == 0 or n == 1:
return n
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