1
0
forked from tdwojak/Python2017
Python2017/labs03/task02.py
2017-12-14 12:28:39 +01:00

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)