project euler Problem 25

i=1
j=1
count=2
while(True):
    count=count+1
    temp=i+j
    i=j
    j=temp
    L=list(str(temp))
    
    if(len(L)>=1000):
        print count
        break


 

你可能感兴趣的:(project euler Problem 25)