From 74acf80e602660ff696513bdada34bd105015c8f Mon Sep 17 00:00:00 2001 From: jandrews Date: Fri, 26 Sep 2025 09:40:10 -0400 Subject: [PATCH] completed names lab it is undefined and is determined by you.functions can be anything you want it to be and can be as complicated as you want it to be. --- shapes.py | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/shapes.py b/shapes.py index 7374058..3088c4b 100644 --- a/shapes.py +++ b/shapes.py @@ -5,13 +5,26 @@ from turtle import * def triangle(side_length): - right(45) forward(side_length) - right(45) + right(120) forward(side_length) - right(45) + right(120) forward(side_length) - right(45) + 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