From b4eaddecfe79630f637b4f0e719531d900a6f032 Mon Sep 17 00:00:00 2001 From: kdang Date: Thu, 9 Oct 2025 09:28:27 -0400 Subject: [PATCH] I was able to draw a pattern of squares with a cool design. Somewhere I got stuck was when I had to figure out how to turn around to draw more squares. A strategy I used to get un-stuck was trial and error until I got the turtle to rotate in the right way. Something I want to learn more about is how to do the same pattern but with different shapes. I challenged myself in completing this project in under 100 lines of code, and I succeeded with the help of defining and iterations. --- drawing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drawing.py b/drawing.py index 421e161..1c25ed8 100644 --- a/drawing.py +++ b/drawing.py @@ -70,12 +70,13 @@ def drawleft(): fly(57) def draw(): + "The turtle draws two rows of squares per cycle." drawright() rotateright() drawleft() rotateleft() -"The turtle starts at a specific point and facing a specific direction." +"The turtle starts at a specific point and facing a specific direction, then performs the draw function." penup() goto(-180,180) pendown()