Files
lab_names/shapes.py
jcaley b731bf0fa1 need to adjust function of recangle function
Checkpoint 2----------------------------------------------------------------
2025-09-24 10:11:53 -04:00

25 lines
369 B
Python

# shapes.py
# ---------
# By MWC contributors
from turtle import *
def triangle(side_length):
forward(side_length)
right(120)
forward(side_length)
right(120)
forward(side_length)
right(120)
def rectangle(height, width):
forward(height)
right(90)
forward(width)
right(90)
forward(height)
right(90)
forward(width)