Modified File, reduced by few lines
This commit is contained in:
parent
2914f9f92b
commit
4c2bde0fdd
1 changed files with 2 additions and 3 deletions
|
@ -20,10 +20,9 @@ def fibonacci():
|
|||
#n[2] = n[0] + n[1]
|
||||
#n[x] = n[x-2] + n[x-1]
|
||||
n = [1,1]
|
||||
i = 0
|
||||
while i < 998:
|
||||
while len(n) < 1000:
|
||||
n.append(n[-1]+n[-2])
|
||||
i+=1
|
||||
|
||||
return str(n[-1])
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue