70.9k views
5 votes
What command would you use to turn the turtle right 90 degrees?

1) turtle.right(90)
2) turtle.turn_right(90)
3) turtle.rotate(90)
4) turtle.move_right(90)

User ZTrix
by
8.2k points

2 Answers

4 votes

Final answer:

The correct command to turn the turtle right by 90 degrees in a Turtle graphics program is turtle.right(90). This rotates the turtle to the right by the given angle.

Step-by-step explanation:

The command to turn the turtle right 90 degrees in a Turtle graphics program is turtle.right(90). This method is used to rotate the turtle (which represents the cursor or pen) to the right through the specified angle, which is 90 degrees in this case. This command is part of the Turtle module in Python, commonly used for introducing programming concepts to beginners.

User AbbeGijly
by
8.6k points
3 votes

Final answer:

To turn the turtle right by 90 degrees, the correct command is turtle.right(90). It changes the turtle's direction by 90 degrees clockwise.The correct option is 1.

Step-by-step explanation:

The command you would use to turn the turtle right by 90 degrees in turtle graphics is turtle.right(90). This command is a part of the turtle graphics library specifically designed for educational purposes to introduce programming concepts. When turtle.right(90) is executed, the turtle in the graphics window will turn 90 degrees to the right (clockwise direction) from its current heading.

User Altocumulus
by
8.2k points