Lesson 04.02 Code (1).txt - #Mishka Allam #6/8/20 #Lesson...

This preview shows page 1 - 2 out of 2 pages.

#Mishka Allam#6/8/20#Lesson 04.02import turtledef drawRectangle(t,c,a,b,d,e,x,y):t.penup()t.setpos(x, y)t.pendown()t.color(c)t.begin_fill()t.left(a)t.forward(b)t.left(d)t.forward(e)t.left(a)t.forward(b)t.left(d)t.forward(e)t.end_fill()def drawTriangle(t, x, y):t.penup()t.setpos(x, y)t.pendown()t.color("gray")t.begin_fill()t.right(30)t.forward(100)t.left(30)t.backward(160)t.end_fill()def drawSun(t, x, y):t.penup()t.setpos(x, y)t.setheading(270)t.pendown()t.color("gold")t.setpos(x,y)for n in range(40):t.forward(60)t.left(130)def drawHouse(t):t.speed(100)drawRectangle(t, "red", 90, 120,90,120,70, -70)drawRectangle(t, "white", 90, 20, 90, 10, 50, 10)drawRectangle(t, "white", 90, 20, 90, 10, -20, 10)drawRectangle(t, "white", 90, 20, 90, 10, -20, -50)drawRectangle(t, "white", 90, 20, 90, 10, 50, -50)
End of preview. Want to read all 2 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Summer
Professor
jane smith
Tags
Harshad number, LL Cool J, 50 Cent, April 20, 50

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture