Last active
March 20, 2021 14:59
-
-
Save giljr/0ca56034b20adbb4be1856ff29a0969a 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 prog_fibo_2(n): | |
a = 1 | |
b = 1 | |
for i in range(n): | |
yield a | |
a, b = b, a + b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment