WorksheetsPython with Turtle
Total questions: 7
Worksheet time: 4mins
How do you call your turtle?
import turtle
go turtle
appear turtle
ninja turtles
How do you make your turtle appear on the screen?
t.turtle=Import
t=turtle.Turtle
turtle=Show
show=Turtle
How do you move your turtle forward?
forward turtle(#) and go fast
Turtle=forward(#)
t.forward(#)
onward.turtle(#)l
How do you make the turtle move forward while it's not drawing?
User asks for turtle penup and move forward
t=(penup)
t=penup()
t.penup()
How do you change the turtle shape?
t.shape(any shape)
t.draw(any shape)
t.draw(ninja turtles)
no clue?
What does this program do?:
import turtle
turtle.Screen().bgcolor("black")
t=turtle.Turtle()
t.shape("turtle")
t.speed(10)
colors = ['red', 'orange', 'yellow', 'green', 'blue', 'violet']
sides = 6
density = 1
twirl_offset = -0.5
for i in range(360*density):
t.color(colors[i % sides])
t.forward(i / density)
t.left((360/sides) + twirl_offset)
Draw a ninja turtle
Draw a rainbow spiderweb
Draw a rainbow
draw a person doing the floss(Please don't be a geek)
How to hide the turtle?
t.hide.t
t.dissapear
t.hideturtle()
t.ht()
