diff --git a/drawings.py b/drawings.py new file mode 100644 index 0000000..197dde5 --- /dev/null +++ b/drawings.py @@ -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) diff --git a/shapes.py b/shapes.py index 731ec39..6933149 100644 --- a/shapes.py +++ b/shapes.py @@ -5,7 +5,23 @@ from turtle import * def triangle(side_length): - pass - + forward(side_length) + right(120) + forward(side_length) + right(120) + forward(side_length) + 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) \ No newline at end of file