1
0
Fork 0
This commit is contained in:
Przemysław Kaczmarek 2017-11-28 18:50:00 +01:00
parent 9115943f9c
commit 02728e80a3
1 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,11 @@ przez 3 lub 5 mniejszych niż n.
"""
def sum_div35(n):
pass
results=0
for i in range(n):
if i%3==0 or i%5==0:
results+=i
return results
def tests(f):
inputs = [[10], [100], [3845]]
@ -21,4 +25,3 @@ def tests(f):
if __name__ == "__main__":
print(tests(sum_div35))