Skip to content
Snippets Groups Projects
8.py 96 B
Newer Older
def fibonacci(n):
    a, b = 0, 1
    for _ in range(n):
        yield a
        a, b = b, a + b