 main.py
```1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
```
```import turtle
import math

def moveTurtle(t,x,y):
"Move turtle t to location x,y with the pen up, point east"
t.up()
t.goto(x,y)
t.down()

def writeText(t,message,x,y):
"Write message using turtle t at (x,y)"
moveTurtle(t,x,y)
t.write(message)

def drawSquare(t,size):
"Draw a square with turtle with sides size long"
i=0
while i<4:      # repeat four times
t.forward(size)
t.left(90)
i+=1

def drawTriangle(t,size,color):
"Draw a triangle with turtle with sides size long"
i=0
t.pencolor(color)
while i<3:      # repeat four times
t.forward(size)
t.left(120)
i+=1

def drawRectangle():
"Draw a rectangle"
"You will need to figure out what the parameters are"
print("A rectangle!")

def drawPolygon(t,sides,size):
"Draw a polygon with turtle with sides size long"
print("draw polygon")

def drawHouse(t,size,color):
"Draw a color house with a roof, two windows and a door of size size"
print("draw house")
drawSquare(t,size)

alex = turtle.Turtle()
writeText(alex,"Home is where the heart is!",-200,200)

drawHouse(alex,50,"green")

wn.exitonclick()```
result
console