1
0
forked from tdwojak/Python2017
# Conflicts:
#	labs02/test_task.py
This commit is contained in:
s45162 2017-12-02 15:43:33 +01:00
parent dcd13d8f6d
commit 881ce4306e

View File

@ -1,7 +1,15 @@
def alfaRange(x, y):
for i in range(ord(x), ord(y)):
yield chr(i)
def Fib(n):
i=n+2
if (n==0):
yield 1
if (n==1):
yield 1
else:
for i in range(n):
yield i
for c in Fib(5):
print(c)
##(``F(0)=1, F(1)=1, FN=F(N-1) + F(N-2)``).
def alfaRange(x, y):
for i in range(ord(x), ord(y)):
yield chr(i)