Created
May 16, 2021 10:02
-
-
Save MartinThoma/f58f7c4ddad091e3b81a4e10a3ac1855 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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