turtle.right() method in Python

Last Updated : 18 Aug, 2025

turtle.right() method turns the turtle clockwise by the given angle (in degrees) without changing its position. The heading (direction) changes, but the turtle stays in the same spot until a movement method like forward() or backward() is called.

Syntax:

turtle.right(angle)

  • Parameters: angle (int | float) is the number of degrees to turn clockwise.
  • Returns: This method only changes the turtle's heading, not its position.

Examples

Example 1: Simple right turn

Python
import turtle
turtle.right(90)

turtle.forward(100)
turtle.done()

Output:

Output
Quarter turn

Explanation:

  • arrow is initially in the right direction
  • we turn it 90° to the right using turtle.right(90° )
  • then we move it forward 100 pixels using turtle.forward(100), creating a vertical line in the downward direction.

Example 2: Multiple right turns

Python
import turtle
turtle.forward(50)

turtle.right(120)
turtle.forward(50)
turtle.done()

Output:

Output
Angle path

Explanation: The turtle moves forward, turns right by 120°, then moves forward again, forming an angled path.

Example 3: Drawing a square using right turns

Python
import turtle

for _ in range(4):
    turtle.forward(100)
    turtle.right(90)

turtle.done()

Output:

Output
Square shape

Explanation: The turtle repeats moving forward 100 pixels and turning right 90° four times, creating a square.

Comment
Article Tags:

Explore