Solution Review: Generate Fibonacci Series with Generator
The solution to the 'Generate Fibonacci Series with Generator' challenge.
We'll cover the following
def Fibonacci(n):a, b = 0, 1for _ in range(n):yield a, ba, b = b, a+bfor num in Fibonacci(7):print(num)
Get hands-on with 1400+ tech skills courses.