For Checkpoint 3 I added in the coordinates used for the

code. To me, this provided more information for thereader.

I thinkI would use docstrings. They are helpful because they put what the code does info
"laymans" terms.
This commit is contained in:
Heather
2025-10-04 17:52:01 -04:00
parent 4bae8094d3
commit 438ca9f024
3 changed files with 17 additions and 6 deletions

10
tile.py
View File

@@ -4,15 +4,21 @@ def draw_tile(size):
"Draws one tile, which can be repeated to form a pattern."
draw_tile_outline(size)
draw_squiggle(size)
draw_triangle(size)
def draw_tile_outline(size):
pencolor("#dddddd")
square(size)
def draw_triangle(size):
for i in range(3):
forward(size)
left(360//3)
def draw_squiggle(size):
forward(size/4)
pencolor("black")
left(90)
pencolor("green")
left(80)
quarter_arc_right(size/4)
quarter_arc_left(size/4)
quarter_arc_left(size/4)