Turn turtle right by angle units. Aliases: right | rt Argument: angle -- a number (integer or float) Turn turtle right by angle units. (Units are by default degrees, but can be set via the degrees() and radians() functions.) Angle orientati
(self, angle)
| 1658 | self._go(-distance) |
| 1659 | |
| 1660 | def right(self, angle): |
| 1661 | """Turn turtle right by angle units. |
| 1662 | |
| 1663 | Aliases: right | rt |
| 1664 | |
| 1665 | Argument: |
| 1666 | angle -- a number (integer or float) |
| 1667 | |
| 1668 | Turn turtle right by angle units. (Units are by default degrees, |
| 1669 | but can be set via the degrees() and radians() functions.) |
| 1670 | Angle orientation depends on mode. (See this.) |
| 1671 | |
| 1672 | Example (for a Turtle instance named turtle): |
| 1673 | >>> turtle.heading() |
| 1674 | 22.0 |
| 1675 | >>> turtle.right(45) |
| 1676 | >>> turtle.heading() |
| 1677 | 337.0 |
| 1678 | """ |
| 1679 | self._rotate(-angle) |
| 1680 | |
| 1681 | def left(self, angle): |
| 1682 | """Turn turtle left by angle units. |