Files
lab_names/shapes.py
2026-02-09 11:07:16 -05:00

21 lines
332 B
Python

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