From fd1d22ef4df2657508e3927e5fa3bd91d339a66b Mon Sep 17 00:00:00 2001 From: "wagner.agnieszka" Date: Fri, 1 Jun 2018 17:55:41 +0200 Subject: [PATCH] passed --- labs02/task08.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/labs02/task08.py b/labs02/task08.py index 252b10d..5eefb77 100644 --- a/labs02/task08.py +++ b/labs02/task08.py @@ -7,7 +7,11 @@ przez 3 lub 5 mniejszych niż n. """ def sum_div35(n): - pass + x = 0 + for i in range(n): + if ( i % 3 == 0 or i % 5 == 0 ) : + x += i + return(x) def tests(f): inputs = [[10], [100], [3845]]