This commit is contained in:
t3xhno 2024-02-06 14:45:15 +01:00
parent 7d5737c68a
commit f5b311e846
5 changed files with 9 additions and 8 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
__pycache__

View File

@ -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)

View File

@ -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