view problem25.py @ 14:49c96972949d default tip

#50 rewrite of solution
author Dominic Cleal <dominic@computerkb.co.uk>
date Mon, 01 Dec 2008 19:11:55 +0000
parents 0e08f4decf67
children
line wrap: on
line source

fib = [1, 1]
i = 2
while (len(str(fib[-1])) < 1000):
	fib.insert(0, fib.pop() + fib[-1])
	i += 1
print i