Skip to content

Instantly share code, notes, and snippets.

@quintenpalmer
Created November 22, 2013 23:48
Show Gist options
  • Save quintenpalmer/7608854 to your computer and use it in GitHub Desktop.
Save quintenpalmer/7608854 to your computer and use it in GitHub Desktop.
def fibn(count, cur=0, old=1):
if count <= 0:
return curr
else:
return fibn(count - 1, curr + old, curr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment