Dir structure

This commit is contained in:
t3xhno 2024-02-06 14:25:34 +01:00
parent b8d3e78dbd
commit 78c7f917d1
4 changed files with 12 additions and 6 deletions

Binary file not shown.

2
lib/num_functions.py Normal file
View File

@ -0,0 +1,2 @@
def isDivBy(num, denom):
return num % denom == 0

View File

@ -1,6 +0,0 @@
sum = 0
for i in range(1, 1000):
if i % 3 == 0 or i % 5 == 0: sum += i
print(sum)

10
src/problem1.py Executable file
View File

@ -0,0 +1,10 @@
import sys
sys.path.append("lib")
from num_functions import isDivBy
sum = 0
for i in range(1, 1000):
if isDivBy(i, 3) or isDivBy(i, 5): sum += i
print(sum)