f1ed9dbaad
# Conflicts: # labs02/test_task.py
10 lines
177 B
Python
10 lines
177 B
Python
# lab03, task02
|
|
|
|
def fibN(n):
|
|
prev, current = 0, 1
|
|
for n in range(n):
|
|
yield prev
|
|
prev, current = current, prev + current
|
|
|
|
for x in fibN(10):
|
|
print(x) |