Created
July 4, 2018 05:39
-
-
Save supphawit/1d86e356909ac437d9020465094a836f to your computer and use it in GitHub Desktop.
This file contains 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 fibo_iter(n): | |
a, b = 0, 1 | |
for i 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