13 lines
89 B
Python
13 lines
89 B
Python
import sys
|
|
|
|
def fib_generator():
|
|
a,b = 0,1
|
|
|
|
while True:
|
|
yield a
|
|
a,b = b, a+b
|
|
|
|
|
|
|
|
|