Files
lab_names/shapes.py
eqb 2ea35825db making shapes
testing commit message
2025-08-25 18:15:30 +08:00

18 lines
305 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):
for i in range(2):
forward (width)
right(90)
forward(height)
right(90)