not close

This commit is contained in:
mbrown
2025-09-24 09:49:56 -04:00
parent 3e9c2e189b
commit 79a38e928a
2 changed files with 29 additions and 3 deletions

10
drawings.py Normal file
View File

@@ -0,0 +1,10 @@
from turtle import forward, right
forward(100)
right(90)
forward(100)
right(90)
forward(100)
right(90)
forward(100)
right(90)

View File

@@ -5,7 +5,23 @@
from turtle import * from turtle import *
def triangle(side_length): def triangle(side_length):
pass forward(side_length)
right(120)
forward(side_length)
right(120)
forward(side_length)
def rectangle(height, width): def rectangle(height, width):
pass forward(width)
right(90)
forward(height)
right(90)
forward(width)
right(90)
forward(height)
right(90)
triangle(100)
rectangle(50,100)