From 93e1fd9fefb52cba39b3201278400efd0ac7937d Mon Sep 17 00:00:00 2001 From: cramsey Date: Mon, 6 Oct 2025 14:57:25 -0400 Subject: [PATCH] yes it was difficult to rewrite square() using a for-loop. (checkpoint 1) I found that I understood how to work the rangest the easiest out of all three checkpoints. (checkpoint 2) I will probably use docstrings in my future codes. (checkpoint 3) --- tile.py | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/tile.py b/tile.py index 697cf8e..dc3df52 100644 --- a/tile.py +++ b/tile.py @@ -10,18 +10,31 @@ def draw_tile_outline(size): square(size) def draw_squiggle(size): - forward(size/4) pencolor("black") + forward(size/4) left(90) - quarter_arc_right(size/4) - quarter_arc_left(size/4) - quarter_arc_left(size/4) - quarter_arc_right(size/4) + forward(size/4) + right(90) + forward(size/3) + left(90) + forward(size/2) + left(90) + forward(size/3) + right(90) + forward (size/4) + left(90) + forward(size/4) left(90) fly(size/4) + fly(size/4) left(90) - fly(size) - left(90) + + + + + + + def fly(distance): "Moves without drawing."