Just another update

This commit is contained in:
Ingy döt Net 2015-02-20 00:35:01 -05:00
parent a25938f123
commit 00a190b0a6
6591 changed files with 94363 additions and 23227 deletions

View file

@ -1,14 +1,4 @@
>>> fg = fibGen()
>>> for x in range(9):
print fg.next()
0
1
1
2
3
5
8
13
21
>>>
def fibGen(n,a=0,b=1):
while n>0:
yield a
a,b,n = b,a+b,n-1