From b6a8c94a47edd2ed5b68a98b8f0bdcc72f69e3aa Mon Sep 17 00:00:00 2001 From: Justin Toombs Date: Sun, 16 Jul 2023 18:58:12 -0400 Subject: [PATCH] The main changes came from accurately depicting the two shapes needed so that the drawings could recreate the illustrated shapes. FOR CHECKPOINT 2 A function is similar to a variable in the sense that it can be used in place of longer blocks of code in order to reduce down on overall workload. Functions are also helpful in breaking down larger or harder problems because you can clearly notice which function is malfunctioning because of how clearly defined they are. For example, I was able to debug the issues with my drawings quickly because I could easily visualize where the errors originated from. --- shapes.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/shapes.py b/shapes.py index 731ec39..cf7d49d 100644 --- a/shapes.py +++ b/shapes.py @@ -5,7 +5,20 @@ from turtle import * def triangle(side_length): - pass + forward(side_length) + right(120) + forward(side_length) + right(120) + forward(side_length) + right(120) + def rectangle(height, width): - pass + forward(width) + right(90) + forward(height) + right(90) + forward(width) + right(90) + forward(height) + right(90) \ No newline at end of file