Skip to content

Instantly share code, notes, and snippets.

@MartinThoma
Created May 16, 2021 10:02
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 MartinThoma/f58f7c4ddad091e3b81a4e10a3ac1855 to your computer and use it in GitHub Desktop.
Save MartinThoma/f58f7c4ddad091e3b81a4e10a3ac1855 to your computer and use it in GitHub Desktop.
def fibonacci(n: int) -> int:
a, b = 0, 1
for _ in range(n):
a, b = b, a+b
return a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment