summaryrefslogtreecommitdiff
path: root/Problem25.py
blob: 277f94c5199ced296df7a56df0866e5e16d4a382 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#Finished 9/8/21 07:26
def fib(n):
    x,y,z,count = 1,1,0,2
    while len(str(z)) < n:
        z = x+y
        x = y
        y = z
        #print(z)
        count+=1
    return count
print(fib(1000))