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)
This commit is contained in:
cramsey
2025-10-06 14:57:25 -04:00
parent e36cc4cc78
commit 93e1fd9fef

27
tile.py
View File

@@ -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."