Skip to content

Instantly share code, notes, and snippets.

@lachlan-eagling
Last active November 2, 2019 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lachlan-eagling/433fddda79a95505fc5769096660a411 to your computer and use it in GitHub Desktop.
Save lachlan-eagling/433fddda79a95505fc5769096660a411 to your computer and use it in GitHub Desktop.
Basic Recursive Fibonacci Sequence
def fib(n):
if n < 2:
return n
return fib(n - 1) + fib(n - 2)
fib(35)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment