0
0
Fork 0

zrobiono zadanie 8

This commit is contained in:
Michał Jaskuła 2018-06-02 09:40:48 +00:00
parent 05f21a640c
commit 513808064f
1 changed files with 8 additions and 1 deletions

View File

@ -7,7 +7,12 @@ przez 3 lub 5 mniejszych niż n.
"""
def sum_div35(n):
pass
suma = 0
for liczba in range(n):
if (liczba % 3 == 0) or (liczba % 5 == 0):
suma = suma + liczba
return suma
def tests(f):
inputs = [[10], [100], [3845]]
@ -22,3 +27,5 @@ def tests(f):
if __name__ == "__main__":
print(tests(sum_div35))