We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c645808 commit bb85474Copy full SHA for bb85474
fib/more_fib.py
@@ -18,9 +18,9 @@ def list_fib(n):
18
list_f = []
19
f = 1
20
list_f.append(f)
21
- list_f.append(f) # because the fibonacci sequence has two 1's at first
+ list_f.append(f)
22
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
+ f = list_f[-1] + list_f[-2]
24
25
return f
26
0 commit comments