1.5: On a sheet of paper sketch out a line drawing of something. Using the turtl
ID: 3778767 • Letter: 1
Question
1.5: On a sheet of paper sketch out a line drawing of something. Using the turtle methods in Table 1.3 recreate your drawing.
Parameter (s) Description Name Creates and returns a new turtle object Turtle None Moves the turtle forward Distance forward Moves the turle backward backward Distance Turns the turtle clockwise Angle right Turns the turtle counterclockwise Angle left Picks up the turtle's tail None up Puts down the turtle's tail None down Color name Changes the color of the turtle's tail Color fillcolor Color name Changes the color that the turtle will use to fill a polygon Returns the current heading None heading Returns the current position position None Moves the turtle to position x, y goto x, y Remembers the starting point for a filled polygon begin fill None Closes the polygon and fills it with the current fill color end fill None Leaves a dot at the current position None dotExplanation / Answer
from turtle import *
turtle.position()
begin_fill()
color("green")
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.backward(100)
turtle.down(100)
end_fill()
turtle.fillcolor("red")
turtle.up()
turtle.goto(0,0)
turtle.circle(10)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.