diff options
author | Joshua Drake <joshua.drake@ditchwitch.com> | 2023-04-07 08:13:49 -0500 |
---|---|---|
committer | Joshua Drake <joshua.drake@ditchwitch.com> | 2023-04-07 08:13:49 -0500 |
commit | 1161f9a034de06a63538e3a9a0b7717098c744d9 (patch) | |
tree | 55bb842b2daa4f096eb7916a8d3630426fc1c376 /Problem25.py |
Diffstat (limited to 'Problem25.py')
-rw-r--r-- | Problem25.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Problem25.py b/Problem25.py new file mode 100644 index 0000000..277f94c --- /dev/null +++ b/Problem25.py @@ -0,0 +1,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)) + |