Skip to content

Commit 975466f

Browse files
committed
Update 060-a000045-txt.md
1 parent 628aa34 commit 975466f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

060-a000045-txt.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,17 @@ Ask Google what A000045 might mean.
1616

1717
A quick Google search for A000045 would bring up the fibonacci numbers. Just use the fibonacci numbers as array indices for the characters in A000045.txt.
1818

19-
`fib = [0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,
20-
1597,2584,4181,6765,10946,17711,28657,46368,75025,
21-
121393,196418,317811,514229,832040,1346269,
22-
2178309,3524578,5702887,9227465,14930352,24157817,
23-
39088169]
19+
```python
20+
fib = [0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765,10946,17711,28657,46368,75025,121393,196418,317811,514229,832040,1346269,2178309,3524578,5702887,9227465,14930352,24157817,39088169];
2421
f = open('A000045.txt', 'r')
2522
stuff = f.read().strip()
2623
result = ''
2724
for x in fib:
2825
if x >= len(stuff):
2926
break
3027
result += stuff[x]
31-
print result`
28+
print result
29+
```
3230

3331
The result printed is `pffibonacciiscoolandtheflagisrecursion`
3432

0 commit comments

Comments
 (0)