forked from tdwojak/Python2017
8 lines
145 B
Python
8 lines
145 B
Python
# lab03, task02
|
|
|
|
def fibN(n):
|
|
prev, current = 1, 1
|
|
for n in range(n):
|
|
yield prev
|
|
prev, current = current, prev + current
|