aboutsummaryrefslogtreecommitdiff
path: root/python/25-1000_digits_fibonacci_number.py
blob: 5ee37b6c591716f881232b0a9f45b77d6b27d515 (plain)
1
2
3
4
5
6
7
8
a, b, c = 1, 1, 0
i = 2
while len(str(c)) != 1000:
    c = a + b
    a, b = b, c
    i += 1

print(i)