MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / back

Method back

Python/Turtle.py:1538–1556  ·  view source on GitHub ↗

Move the turtle backward by distance. Aliases: back | backward | bk Argument: distance -- a number Move the turtle backward by distance, opposite to the direction the turtle is headed. Do not change the turtle's heading. Example (for a Turtle insta

(self, distance)

Source from the content-addressed store, hash-verified

1536 self._go(distance)
1537
1538 def back(self, distance):
1539 """Move the turtle backward by distance.
1540
1541 Aliases: back | backward | bk
1542
1543 Argument:
1544 distance -- a number
1545
1546 Move the turtle backward by distance, opposite to the direction the
1547 turtle is headed. Do not change the turtle's heading.
1548
1549 Example (for a Turtle instance named turtle):
1550 >>> turtle.position()
1551 (0.00, 0.00)
1552 >>> turtle.backward(30)
1553 >>> turtle.position()
1554 (-30.00, 0.00)
1555 """
1556 self._go(-distance)
1557
1558 def right(self, angle):
1559 """Turn turtle right by angle units.

Callers

nothing calls this directly

Calls 1

_goMethod · 0.95

Tested by

no test coverage detected