10 lines
159 B
Python
10 lines
159 B
Python
|
def fib(n):
|
||
|
if n <= 1:
|
||
|
return n
|
||
|
else:
|
||
|
return fib(n-1) + fib(n-2)
|
||
|
|
||
|
out = [fib(i) for i in range(1,54)]
|
||
|
for line in out:
|
||
|
print(line)
|