What is the command to get the turtle from "home" to a corner of the grid instantly?
setposition(200,200)
setposition(-200,200)
setposition(-200,200)
setposition(200,-200)
How do change the shape of a turtle to a triangle
shape("triangle")
How do you draw a circle with a radius of 10?
circle(10)
How do you make a function?
def do_something():
# Do something
How could you shorten this set of commands?
run_function(1)
run_function(2)
run_function(3)
for i in range(3):
run_function(i + 1)
How do you draw a circle with the radius of 100?
circle(100)
How do you change the color of a turtle to blue?
color("blue")
How do you draw a square WITH four loops?
for i in range(4)
forward(10)
left(90)
How do you make a function with parameters?
def do_something(parameter1):
# Do something with the parameter
for i in range(5):
# Do something
How do you generate a random number between five and ten?
import random
random.randint(5,10)
How do you hide the turtle from view?
hideturtle()
How do you make a shape with 5 sides?
Circle(10, 365, 5)
How do you make a function with multiple parameters?
def do_something(parameter1, parameter2):
# Do something with the parameters
What would you write if you were making 3 circles?
for i in range(3)
circle(10)
forward(20)