1.

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» The correct choice is (d) turtle.shape(“rectangle”)

Easy 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.


Discussion

No Comment Found