From 9c4efbad9fe3117ce9dc807988d2ffaa20a46c67 Mon Sep 17 00:00:00 2001 From: baphim <269010393+baphim@users.noreply.github.com> Date: Fri, 4 Sep 2026 22:35:22 -0400 Subject: [PATCH] feat(r-1.4_scratch.py): making guesses --- lab-01/r-1.4_scratch.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lab-01/r-1.4_scratch.py b/lab-01/r-1.4_scratch.py index 5da9256..6a35776 100644 --- a/lab-01/r-1.4_scratch.py +++ b/lab-01/r-1.4_scratch.py @@ -15,9 +15,11 @@ def squares_sum(n): n = n - 1 list.append(n) if n == 1: - print(list) + square_list = [] + for val in list: + square_list.append(val*val) + print(square_list) + + - - - squares_sum(5) \ No newline at end of file