1
0
Fork 0
This commit is contained in:
Justyna Adamczyk 2018-05-23 17:41:29 +00:00
parent a4b330b3b0
commit 56c08684b9
1 changed files with 1 additions and 2 deletions

View File

@ -8,9 +8,8 @@ przez 3 lub 5 mniejszych niż n.
def sum_div35(n):
suma = 0
i=1
for i in range(n-1):
if (i%3 or i%5):
if (i%3==0) or (i%5==0):
suma = suma + i
return suma