From 56c08684b98af15b53ca4cf427500a005c9d4810 Mon Sep 17 00:00:00 2001 From: Justyna Adamczyk Date: Wed, 23 May 2018 17:41:29 +0000 Subject: [PATCH] zrobione --- labs02/task08.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/labs02/task08.py b/labs02/task08.py index dc4f3f8..0512e58 100644 --- a/labs02/task08.py +++ b/labs02/task08.py @@ -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