Skip to content

Commit bb85474

Browse files
committed
2019.1.30 edit more_fib code
1 parent c645808 commit bb85474

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fib/more_fib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ def list_fib(n):
1818
list_f = []
1919
f = 1
2020
list_f.append(f)
21-
list_f.append(f) # because the fibonacci sequence has two 1's at first
21+
list_f.append(f)
2222
for i in range(n-2):
23-
f = list_f[-1] + list_f[-2] # says that f = the sum of the last two f's in the series
23+
f = list_f[-1] + list_f[-2]
2424
list_f.append(f)
2525
return f
2626

0 commit comments

Comments
 (0)