forked from tdwojak/Python2017
14 lines
221 B
Python
14 lines
221 B
Python
#!/usr/bin/env python2
|
|
# -*- coding: utf-8 -*-
|
|
|
|
def Fibb(n):
|
|
f_1 = 1
|
|
f_2 = 1
|
|
for i in range(0, n):
|
|
f_3 = f_1 + f_2
|
|
yield f_1
|
|
f_1 = f_2
|
|
f_2 = f_3
|
|
|
|
for c in Fibb(10):
|
|
print(c) |