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 orientation depend
(self, angle)
| 1556 | self._go(-distance) |
| 1557 | |
| 1558 | def right(self, angle): |
| 1559 | """Turn turtle right by angle units. |
| 1560 | |
| 1561 | Aliases: right | rt |
| 1562 | |
| 1563 | Argument: |
| 1564 | angle -- a number (integer or float) |
| 1565 | |
| 1566 | Turn turtle right by angle units. (Units are by default degrees, |
| 1567 | but can be set via the degrees() and radians() functions.) |
| 1568 | Angle orientation depends on mode. (See this.) |
| 1569 | |
| 1570 | Example (for a Turtle instance named turtle): |
| 1571 | >>> turtle.heading() |
| 1572 | 22.0 |
| 1573 | >>> turtle.right(45) |
| 1574 | >>> turtle.heading() |
| 1575 | 337.0 |
| 1576 | """ |
| 1577 | self._rotate(-angle) |
| 1578 | |
| 1579 | def left(self, angle): |
| 1580 | """Turn turtle left by angle units. |