From a4b330b3b05cdeb7009e610ed48cbc4d3ff01f0f Mon Sep 17 00:00:00 2001 From: Justyna Adamczyk Date: Tue, 22 May 2018 19:09:50 +0000 Subject: [PATCH] =?UTF-8?q?jeszcze=20b=C4=99de=20poprawia=C4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- labs02/task08.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/labs02/task08.py b/labs02/task08.py index 252b10d..dc4f3f8 100644 --- a/labs02/task08.py +++ b/labs02/task08.py @@ -7,7 +7,14 @@ przez 3 lub 5 mniejszych niż n. """ def sum_div35(n): - pass + suma = 0 + i=1 + for i in range(n-1): + if (i%3 or i%5): + suma = suma + i + + return suma +#jeszcze jest źle def tests(f): inputs = [[10], [100], [3845]]