We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c3d0f8 commit aa192cbCopy full SHA for aa192cb
maths/fibonacci.py
@@ -61,6 +61,7 @@ def fib_iterative(n: int) -> list[int]:
61
fib.append(fib[-1] + fib[-2])
62
return fib
63
64
+
65
def fib_iterative_yield(n: int) -> Iterator[int]:
66
"""
67
Calculates the first n (1-indexed) Fibonacci numbers using iteration with yield
0 commit comments