Moved
This commit is contained in:
parent
7d5737c68a
commit
f5b311e846
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
__pycache__
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1,9 @@
|
|||||||
def isDivBy(num, denom):
|
def isDivBy(num, denom):
|
||||||
return num % denom == 0
|
return num % denom == 0
|
||||||
|
|
||||||
|
def fib(i):
|
||||||
|
if i == 1:
|
||||||
|
return 1
|
||||||
|
elif i == 2:
|
||||||
|
return 2
|
||||||
|
return fib(i - 1) + fib(i - 2)
|
@ -1,13 +1,6 @@
|
|||||||
import sys
|
import sys
|
||||||
sys.path.append("lib")
|
sys.path.append("lib")
|
||||||
from num_fns import isDivBy
|
from num_fns import isDivBy, fib
|
||||||
|
|
||||||
def fib(i):
|
|
||||||
if i == 1:
|
|
||||||
return 1
|
|
||||||
elif i == 2:
|
|
||||||
return 2
|
|
||||||
return fib(i - 1) + fib(i - 2)
|
|
||||||
|
|
||||||
sum = 0
|
sum = 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user