Skip to content

Instantly share code, notes, and snippets.

@RobertTalbert
Created November 20, 2020 02:46
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 RobertTalbert/eaa1dffa0eac1f3e9114c6fc77af2a55 to your computer and use it in GitHub Desktop.
Save RobertTalbert/eaa1dffa0eac1f3e9114c6fc77af2a55 to your computer and use it in GitHub Desktop.
def fib(n):
if n == 0 or n == 1:
return 1
else:
return fib(n-1) + fib(n-2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment