Удалил Untitled.ipynb

This commit is contained in:
Sergey Lemeshevsky
2020-03-18 21:39:35 +03:00
parent 7dba740376
commit 6a3c918bdc
24 changed files with 4029 additions and 810 deletions

View File

@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
def fib(n):
"""
Возвращает список первых n чисел Фибоначи
"""
f0, f1 = 0, 1
f = [1]*n
for i in range(1, n):
f[i] = f0 + f1
f0, f1 = f1, f[i]
return f
print(fib(10))