Which of the following functions results in an error?

Which of the following functions results in an error?
A. turtle.shape(“turtle”)
B. turtle.shape(“square”)
C. turtle.shape(“triangle”)
D. turtle.shape(“rectangle”)
 
Answer: d
Explanation: The functions shown above will change the arrow to the shape mentioned. The functions turtle.shape(“turtle”), turtle.shape(“square”) and turtle.shape(“triangle”) are valid whereas the function turtle.shape(“rectangle”) is invalid.
 

Tìm kiếm

Back
Top