Modified File, reduced by few lines

This commit is contained in:
Mogfrat 2023-05-03 01:28:02 +02:00
parent 2914f9f92b
commit 4c2bde0fdd

View file

@ -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])