Using the drawing tools presented here, draw a house—just go for the simple child’s house with one door, two windows, walls, and a roof.

What will be an ideal response?

```

def makeHouse():

canvas = makeEmptyPicture(100,100)



#walls and door

addRect(canvas, 20, 40, 60, 59)

addRect(canvas, 45, 80, 10, 19)



#roof

addLine(canvas,0,40,50,0)

addLine(canvas,50,0,100,40)

addLine(canvas,0,40,100,40)



#windows

addRect(canvas, 25, 60, 9, 19)

addLine(canvas,25,70,34,70)

addLine(canvas,30,60,30,79)

addRect(canvas, 65, 60, 9, 19)

addLine(canvas,65,70,74,70)

addLine(canvas,70,60,70,79)



return canvas

```



Computer Science & Information Technology

You might also like to view...

Intel and AMD processors share two common architectures: x86 and x64

Indicate whether the statement is true or false

Computer Science & Information Technology

What are the typical maximum lengths for (a) multimode fiber and (b) singlemode fiber?

What will be an ideal response?

Computer Science & Information Technology