From a5b685f7aa81a170758b2d52a102b354fb7249a2 Mon Sep 17 00:00:00 2001 From: Seoyeon Lee Date: Tue, 10 Sep 2024 18:28:14 -0400 Subject: [PATCH] function can be defied by a person or a user, thus it is not fixed just like a variable. To achieve a big goal, a person need to take multiple small steps. Often, a math question requires lots of smaller steps to get a final answer. In life, we often need to work on a small tasks to make somewhat meaningful outcomes. --- shapes.py | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/shapes.py b/shapes.py index 731ec39..1172845 100644 --- a/shapes.py +++ b/shapes.py @@ -5,7 +5,23 @@ 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) + + + +