Skip to content

Instantly share code, notes, and snippets.

@j10sanders
Created October 12, 2016 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j10sanders/afbf502bbee775d9780190c0b0e24dac to your computer and use it in GitHub Desktop.
Save j10sanders/afbf502bbee775d9780190c0b0e24dac to your computer and use it in GitHub Desktop.
My answer to project euler 25
#https://projecteuler.net/problem=25
def fib(digits):
f = i = 1
e = j = 0
while digits > len(str(f)):
e = j
j = f
f = e + j
i += 1
return f, i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment