From 0edd7574d2fa0719e8ab35c1a9ce89a8830abfb2 Mon Sep 17 00:00:00 2001 From: Lauren Dawnkaski Date: Tue, 10 Sep 2024 16:16:39 -0400 Subject: [PATCH] I have reached checkpoint 1 It was a little difficult at first. The way I tackled it was I thought about what needed to be repeated. I came to the conclusion that the 'side' itself needed to be repeated. --- square.py | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/square.py b/square.py index c5f1cac..c57419d 100644 --- a/square.py +++ b/square.py @@ -1,16 +1,14 @@ from turtle import * def square(side_length): - forward(side_length) - right(90) - forward(side_length) - right(90) - forward(side_length) - right(90) - forward(side_length) - right(90) + sides=[1, 2, 3, 4] + for sides in sides: + forward(side_length) + right(90) -sizes = [20, 40, 60, 80, 100] -for size in sizes: - square(size) +square(50) + + + +input()