forked from tdwojak/Python2017
Merge branch 'master' of https://git.wmi.amu.edu.pl/tdwojak/Python2017
# Conflicts: # labs02/test_task.py
This commit is contained in:
parent
dcd13d8f6d
commit
881ce4306e
@ -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)
|
Loading…
Reference in New Issue
Block a user