4 lines
80 B
Python
4 lines
80 B
Python
def fibGen(n,a=0,b=1):
|
|
while n>0:
|
|
yield a
|
|
a,b,n = b,a+b,n-1
|