From 812d682f747e10e15f2ffe2293453b0017cda313 Mon Sep 17 00:00:00 2001 From: baphim <269010393+baphim@users.noreply.github.com> Date: Fri, 4 Sep 2026 22:08:58 -0400 Subject: [PATCH] fix(r-1.4_scratch.py): corrected operation to stop with value of n being positive --- lab-01/r-1.4_scratch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lab-01/r-1.4_scratch.py b/lab-01/r-1.4_scratch.py index 6a6d75d..0b0014b 100644 --- a/lab-01/r-1.4_scratch.py +++ b/lab-01/r-1.4_scratch.py @@ -11,7 +11,7 @@ sum of the squares of all the positive integers smaller than n. def squares_sum(n): list = [] - while n >= 1: + while n >= 2: n = n - 1 print(n)