...

/

Solution Review: Generate Fibonacci Series with Generator

Solution Review: Generate Fibonacci Series with Generator

The solution to the 'Generate Fibonacci Series with Generator' challenge.

We'll cover the following...
Press + to interact
def Fibonacci(n):
a, b = 0, 1
for _ in range(n):
yield a, b
a, b = b, a+b
for num in Fibonacci(7):
print(num)

Explanation

Look at the ...