checkpoint 2 - shapes

I did it! It was easier than the previous checkpoint. The only hurdle was the mathematics, not the coding haha.
This commit is contained in:
sigrid
2025-09-03 17:22:14 +08:00
parent ad2b0410c4
commit 94f016f59d

View File

@@ -2,10 +2,22 @@
# ---------
# By MWC contributors
from turtle import *
from turtle import forward, right
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)