4.02 More Decisions .py - import turtle def basicHouse(t):...

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

import turtledef basicHouse(t):t = turtle.Turtle()t.color("yellow")t.penup()t.setpos(-70, -180)t.pendown()t.shape("turtle")t.begin_fill()t.color("red")t.forward(150)t.left(90)t.forward(150)t.left(90)t.forward(150)t.left(90)t.forward(150)t.left(180)t.forward(150)t.end_fill()t.begin_fill()t.color("blue")t.right(30)t.forward(150)t.right(120)t.forward(150)t.end_fill()def basicBox(t):t = turtle.Turtle()t.color("hot pink")t.speed(30)side = 20angle = 90for count in range(60):t.forward(side + count * 2)t.left(angle)def drawTriangle(t):t = turtle.Turtle()t.color("red")t.forward(180)t.right(110)t.forward(180)t.right(125)t.forward(205)def printMenu():
End of preview. Want to read all 2 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
NoProfessor
Tags
Control Engineering, 2006 albums

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture