# Tracey The Turtle Answers Codehs

## Unlock all answers in this set

question
circle(35) forward(40) circle(35) forward(40) circle(35) forward(40) circle(35) forward(40) circle(35) forward(40)
question
2.2.4: Shorter Dashed Line
penup() backward(200) pendown() forward(50) penup() forward(50) pendown() forward(50) penup() forward(50) forward(50) penup() forward(50) pendown() forward(50) penup() forward(50) pendown()
question
2.2.5: Caterpillar
circle(20) penup() forward(40) pendown() circle(20) penup() forward(40) pendown() circle(20) penup() forward(40) pendown() circle(20) penup() forward(40) pendown() circle(20) penup() forward(40) pendown() penup()
question
2.3.5: Rectangle
forward(50) left(90) forward(100) left(90) forward(50) left(90) forward(100) left(90)
question
2.3.6: 4 Columns
penup() left(90) forward(200) right(90) right(90) pendown() forward(400) penup() left(90) forward(100) left(90) pendown() forward(400) penup() left(90) left(90) forward(400) right(90) forward(200) right(90) pendown() forward(400)
question
2.4.5: Row of Circles
pendown() backward(190) for i in range (20): pendown() circle(20) penup() forward(20)
question
2.4.6: 4 Columns 2.0
pendown() backward(190) for i in range (20): forward(200) right(90) right(90) pendown() forward(400) penup() left(90) forward(100) left(90) pendown() forward(400) penup() left(90) left(90) forward(400) right(90) forward(200) right(90) pendown() forward(400)
question
2.5.5: Hexagon
left(30) for i in range(6): forward(50) left(60)
question
2.5.6: 'X' Marks the Spot
left(45) for i in range(4): forward(100) backward(100) left(90)
question
2.5.7: Circle Pyramid
penup() setposition(-100,-200) for i in range (3): pendown() circle(50) penup() forward(100) setposition(-50,-100) for i in range (2): pendown() circle(50) penup() forward(100) setposition(0,0) for i in range (1): pendown() circle(50) penup() forward(100)
question
"""In this code Tracey will build a pyrimid""" penup() setposition(-100,-200) for i in range (3): pendown() circle(50) penup() forward(100) setposition(-50,-100) #Now Tracey will draw a circle for i in range (2): pendown() circle(50) penup() forward(100) setposition(0,0) for i in range (1): pendown() circle(50) penup() forward(100) #Now Tracey will take a break
question
"""this code will make Tracey a bead bracelet for her b-day""" def draw_beaded_braclet(): for i in range(36): forward(10) pendown() circle(10) left(10) penup() draw_beaded_braclet()
question
2.8.5: Shape Stack
"""This code will help Tracey put her toy blocks into a tall stack""" def draw_circle_stack(): for i in range(4): pendown() circle(25) forward(100) def draw_square_stack(): left(90) for i in range(4): pendown() left(90) circle(50, 360, 4) draw_square_stack() draw_circle_stack()
question
2.9.5: Four Colored Triangles
penup() backward(100) def draw_loop_thingy(): for i in range(4): pensize(5) pendown() left(60) color("green") draw_loop_thingy() forward(50) right(120) color("blue") forward(50) color("red") right(120) forward(50) penup() left(180) forward(50)
question
2.9.6: Colorful Bracelet
"""this code will make Tracey a bead bracelet for her b-day""" def draw_beaded_braclet(): for i in range(36): color("purple") forward(10) pendown() circle(10) left(10) penup() color("blue") forward(10) color("red") draw_beaded_braclet()
question
2.11.4: Dartboard
penup() radius=2 for i in range(25,101,25): setposition(0,0) right(90) forward(i) left(90) pendown() circle(i) penup() def draw_something(): forward(20)
question
2.11.5: Line of Increasing Blocks
speed(3) size=10 def make_square(): for i in range(4): pendown() forward(size) left(90) setposition(-150,0) for i in range(5): make_square() penup() forward(2*size) size=size+10
question
2.12.4: Colored Dartboard
question
2.12.5: Four Corners
int(input("square_length")) penup() setposition(-200,-200) pendown() left(90) for i in range(4): forward(50) right(90) penup() forward(400) pendown() right(90) for i in range(4): forward(50) right(90) forward(400) pendown() right(90) for i in range(4): forward(50) right(90) forward(400) pendown() right(90) for i in range(4): forward(50) right(90)
question
2.13.4: Colorful Caterpillar
penup() setposition(-150,0) pendown() def make_caterpillar(color_choice): color(color_choice) begin_fill() circle(20) end_fill() make_caterpillar("blue") penup() forward(40) pendown() make_caterpillar("green") penup() forward(40) pendown() make_caterpillar("yellow") penup() forward(40) pendown() make_caterpillar("red") penup() forward(40) pendown() make_caterpillar("blue") penup() forward(40) pendown() make_caterpillar("green") penup() forward(40) pendown() make_caterpillar("yellow") penup() forward(40) pendown() make_caterpillar("red") for i in range(4): penup()
question
2.13.5: Circle in a Square
question
2.13.6: Snowman
question
2.14.4: Geometry 2.0
question
2.15.4: Dartboard using i
penup() radius=2 for i in range(25,101,25): setposition(0,0) right(90) forward(i) left(90) pendown() circle(i) penup() def draw_something(): forward(20)
question
2.15.5: Phone Signal
for i in range(10, 51, 10): forward(10) left(90) forward(i) left(90) forward(10) left(90) forward(i) left(90) penup() forward(25) pendown()
question
2.16.4: Happy Face
inputs = ["Yes"] def draw_eye(): color("black") begin_fill() pendown() circle(10) end_fill() penup() happy = input("Are you happy? (Yes/No): ") if happy == "Yes": penup() right(90)
question
2.16.5: Black and White Squares
inputs = ["Yes"] def draw_black_square(): color("black") begin_fill() pendown() circle(10) end_fill() penup() black = input("Is square black? (Yes/No): ") if black %"Yes": penup() right(90) for i in range(1): pendown()
question
2.17.4: Rating
rating= 8 def red_ex(): pensize(5) color("red") left(45) for i in range(4): forward(100) backward(100) left(90) def yellow_line(): pensize(5) color("yellow") forward(100) def green_check(): pensize(5) color("green") left(45) for i in range(2): forward(100) backward(100) number = int(input("Enter a number: ")) if number < 5: red_ex() elif number == 7: yellow_line() else: green_check()
question
inputs = ["Yes"] def draw_eye(): color("black") begin_fill() pendown() circle(10) end_fill() penup() happy = input("Are you happy? (Yes/No): ") if happy == "Yes": penup() right(90)
question
2.18.4: Increasing Squares
length = 50 speed(0) #while loop for drawing the squares def drawSquare(l): for i in range(4): forward(l) left(90) while length < 400: penup() backward(length/2) right(90) forward(length/2) left(90) pendown() drawSquare(length) penup() forward(length/2) left(90) forward(length/2) right(90) length = length + 50
question
2.18.5: Guess a Number