MCPcopy Index your code
hub / github.com/python/cpython / back

Method back

Lib/turtle.py:1707–1725  ·  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

1705 self._go(distance)
1706
1707 def back(self, distance):
1708 """Move the turtle backward by distance.
1709
1710 Aliases: back | backward | bk
1711
1712 Argument:
1713 distance -- a number
1714
1715 Move the turtle backward by distance, opposite to the direction the
1716 turtle is headed. Do not change the turtle's heading.
1717
1718 Example (for a Turtle instance named turtle):
1719 >>> turtle.position()
1720 (0.00,0.00)
1721 >>> turtle.backward(30)
1722 >>> turtle.position()
1723 (-30.00,0.00)
1724 """
1725 self._go(-distance)
1726
1727 def right(self, angle):
1728 """Turn turtle right by angle units.

Callers 2

test_backwardsMethod · 0.80
display_date_timeFunction · 0.80

Calls 1

_goMethod · 0.95

Tested by 1

test_backwardsMethod · 0.64