turtle.right() method in Python Last Updated : 16 Jul, 2020 Comments Improve Suggest changes Like Article Like Report The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.right() The turtle.right() method is used to change the direction of the turtle by the value of the argument that it takes. It gives the moving of the head of the turtle in a direction. Syntax: turtle.right(angle) The argument it takes is angle { a number (integer or float) }. So, it turns turtle right by angle units. (Units are by default degrees but can be set via the degrees() and radians() functions.) Angle orientation depends on the mode. Below is the implementation of the above method with some examples : Example 1: Python3 # importing package import turtle # move the turtle forward by # 100 unit distance in the # direction of head of turtle turtle.forward(100) # change the direction of turtle # by 90 degrees to the right. turtle.right(90) # move the turtle forward by # 100 unit distance in the # direction of head of turtle turtle.forward(100) Output : Example 2: Python3 # importing package import turtle # Loop for pattern for i in range(10): # move the turtle forward by # 100+variable unit distance # in the direction of head of turtle turtle.forward(100+10*i) # change the direction of turtle # by 90 degrees to the right. turtle.right(90) Output : Comment More infoAdvertise with us Next Article turtle.right() method in Python D deepanshu_rustagi Follow Improve Article Tags : Python Python-turtle Practice Tags : python Similar Reads turtle.up() method in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.up() The turtle.up() method is used to pull the pen up from the screen. It g 1 min read turtle.pos() method in Python The Turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.pos() This method is used to find the turtle's current location (x, y), as a 2 min read turtle.left() method in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.left() The turtle.left() method is used to change the direction of the turtl 2 min read turtle.down() method in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.down() The turtle.down() method is used to pull back the pen down on the scr 1 min read Python - Sympy Triangle.is_right() method In Sympy, the function Triangle.is_right() is used to check whether the given triangle is Right-Angled Triangle or not. Right-Angled Triangle is the triangle in which one angle is a right angle(90 degrees). Syntax: Triangle.is_right() Returns: True: if it is right-angled, otherwise False Example #1: 1 min read Like