forked from tdwojak/Python2017
Resolved
This commit is contained in:
parent
9115943f9c
commit
02728e80a3
@ -7,7 +7,11 @@ przez 3 lub 5 mniejszych niż n.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def sum_div35(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):
|
def tests(f):
|
||||||
inputs = [[10], [100], [3845]]
|
inputs = [[10], [100], [3845]]
|
||||||
@ -21,4 +25,3 @@ def tests(f):
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
print(tests(sum_div35))
|
print(tests(sum_div35))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user